Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1852)

Unified Diff: testing/scripts/common.py

Issue 2142883002: webkit_python_tests: always run from the checkout root (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing/scripts/webkit_python_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/scripts/common.py
diff --git a/testing/scripts/common.py b/testing/scripts/common.py
index d07548c496cbb6f7c6f065e9f93df8f96884f153..ee49a8926928dd604cc8c6e0fc57d9ab838ebe6b 100644
--- a/testing/scripts/common.py
+++ b/testing/scripts/common.py
@@ -63,9 +63,9 @@ def run_script(argv, funcs):
return args.func(args)
-def run_command(argv, env=None):
- print 'Running %r' % argv
- rc = subprocess.call(argv, env=env)
+def run_command(argv, env=None, cwd=None):
+ print 'Running %r in %r (env: %r)' % (argv, cwd, env)
+ rc = subprocess.call(argv, env=env, cwd=cwd)
print 'Command %r returned exit code %d' % (argv, rc)
return rc
« no previous file with comments | « no previous file | testing/scripts/webkit_python_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698