From 97586c7e377570c78e06b46f19163f4e7352f79b Mon Sep 17 00:00:00 2001 From: Alexandre Rames Date: Mon, 18 Jan 2016 14:44:54 +0000 Subject: Clean more top-level run.py tests. Change-Id: If386f617d2281f1fce88ca75b107b42e2071ff0a --- test/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test.py b/test/test.py index 54b5a58..8deae9d 100755 --- a/test/test.py +++ b/test/test.py @@ -72,7 +72,6 @@ def TestBenchmarksOnHost(): # Reduce the duration of the tests. "--filter", "benchmarks/algorithm/NSieve"], _cwd=non_root_path) - rc |= TestCommand([os.path.join(utils.dir_root, "./run.py")], _cwd=non_root_path) # Test that the `--output-*` option work even when a path prefix is not specified. rc |= TestCommand([os.path.join(utils.dir_root, run_py), # Reduce the duration of the tests. @@ -112,7 +111,9 @@ def TestLint(jobs = 1): def TestTopLevelWrapperScripts(): rc = 0 rc |= TestCommand(["./run.py"], _cwd=utils.dir_root) - # Test the wrapper scripts. + non_root_path = os.path.join(utils.dir_root, "test", "foobar") + rc |= TestCommand(["mkdir", "-p", non_root_path]) + rc |= TestCommand([os.path.join(utils.dir_root, "./run.py")], _cwd=non_root_path) rc |= TestCommand(["./run.py", "--output-pkl=/tmp/res1"], _cwd=utils.dir_root) rc |= TestCommand(["./run.py", "--output-pkl=/tmp/res2"], _cwd=utils.dir_root) rc |= TestCommand(["./compare.py", "/tmp/res1", "/tmp/res2"], _cwd=utils.dir_root) -- cgit v1.2.3