Bug 748109 - jstests.py cannot find any test cases. r=terrence

When I do:
  cd js/src/tests
  python jstests.py $js_bin js1_8_5/extensions

it is unable to find any tests to run because it's looking relative to the jstests.py script, but at least in this case that is a relative path (plain "jstests.py") so os.path.dirname(__file__) is the empty string and that doesn't seem to work very well.

--HG--
extra : rebase_source : 1cdc461680ceadba26fc512a50d9c7247a187744
This commit is contained in:
Steve Fink 2012-04-21 15:51:04 -07:00
parent acc26b3202
commit e304e9ec70

View File

@ -147,7 +147,7 @@ if __name__ == '__main__':
xul_info = manifest.XULInfo(xul_abi, xul_os, xul_debug)
xul_tester = manifest.XULInfoTester(xul_info, JS)
test_dir = os.path.dirname(__file__)
test_dir = os.path.dirname(os.path.realpath(__file__))
test_list = manifest.load(test_dir, xul_tester)
skipped_list = []