diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-04 18:02:44 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-04 18:02:44 +0300 |
commit | 65be7a9ab746285c41b7ff7b0744fdeda0b02f2b (patch) | |
tree | ed79fb757f9d9b30a83a0ab5be1bb383b906c5e1 /run_tests.py | |
parent | c0c2c35496f2832fee7623ec268e87e23b58a33f (diff) | |
download | meson-65be7a9ab746285c41b7ff7b0744fdeda0b02f2b.zip meson-65be7a9ab746285c41b7ff7b0744fdeda0b02f2b.tar.gz meson-65be7a9ab746285c41b7ff7b0744fdeda0b02f2b.tar.bz2 |
A few Fedora fixes.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/run_tests.py b/run_tests.py index e89346e..158aadd 100755 --- a/run_tests.py +++ b/run_tests.py @@ -23,9 +23,12 @@ install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install meson_command = './meson.py' if True: # Currently we have only one backend. backend_flags = [] - compile_commands = ['ninja'] - test_commands = ['ninja', 'test'] - install_commands = ['ninja', 'install'] + ninja_command = environment.detect_ninja() + if ninja_command is None: + raise RuntimeError('Could not find Ninja executable.') + compile_commands = [ninja_command] + test_commands = [ninja_command, 'test'] + install_commands = [ninja_command, 'install'] def run_test(testdir): shutil.rmtree(test_build_dir) |