Bug 615975 - Switch to the manifest directory before running a test in a debugger. r=dmandelin

This commit is contained in:
Jeff Walden 2010-12-02 12:35:21 -08:00
parent 37c1a048b6
commit 75d81e4a12

View File

@ -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()