diff options
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/run_tests.py b/run_tests.py index 0f39a6d..fcf56a6 100755 --- a/run_tests.py +++ b/run_tests.py @@ -20,9 +20,9 @@ import os, subprocess, shutil test_build_dir = 'work area' install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir') builder_command = './builder.py' -compile_commands = [os.path.join(test_build_dir, 'compile.sh')] -test_commands = [os.path.join(test_build_dir, 'run_tests.sh')] -install_commands = [os.path.join(test_build_dir, 'install.sh')] +compile_commands = ['compile.sh'] +test_commands = ['run_tests.sh'] +install_commands = ['install.sh'] def run_test(testdir): shutil.rmtree(test_build_dir) @@ -34,15 +34,15 @@ def run_test(testdir): p.wait() if p.returncode != 0: raise RuntimeError('Generating the build system failed.') - pc = subprocess.Popen(compile_commands) + pc = subprocess.Popen(compile_commands, cwd=test_build_dir) pc.wait() if pc.returncode != 0: raise RuntimeError('Compiling source code failed.') - pt = subprocess.Popen(test_commands) + pt = subprocess.Popen(test_commands, cwd=test_build_dir) pt.wait() if pt.returncode != 0: raise RuntimeError('Running unit tests failed.') - pi = subprocess.Popen(install_commands) + pi = subprocess.Popen(install_commands, cwd=test_build_dir) pi.wait() if pi.returncode != 0: raise RuntimeError('Running install failed.') |