mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 615975 - Switch to the manifest directory before running a test in a debugger. r=dmandelin
This commit is contained in:
parent
37c1a048b6
commit
75d81e4a12
@ -325,6 +325,9 @@ if __name__ == '__main__':
|
||||
cmd = test_list[0].get_command(TestTask.js_cmd_prefix)
|
||||
if OPTIONS.show_cmd:
|
||||
print subprocess.list2cmdline(cmd)
|
||||
manifest_dir = os.path.dirname(OPTIONS.manifest)
|
||||
if manifest_dir not in ('', '.'):
|
||||
os.chdir(os.path.dirname(OPTIONS.manifest))
|
||||
call(cmd)
|
||||
sys.exit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user