diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-02-27 11:38:31 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-02-27 11:43:26 -0800 |
commit | 2cc2b84a13c9f9de6efcf3dd229c644be5693968 (patch) | |
tree | ba6ec52efb8a64078131046887647fe7190a035d /tools/run_tests | |
parent | 6e0b2803899380ba5e918e892b3f4dbaeeca7ff5 (diff) |
Allow starting from non-root directory
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-x | tools/run_tests/run_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index 4e0ff85c59..372321c5e3 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -44,6 +44,10 @@ import jobset import watch_dirs +ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..')) +os.chdir(ROOT) + + # SimpleConfig: just compile with CONFIG=config, and run the binary to test class SimpleConfig(object): |