aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py
index e85a6d6..7e799cb 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -46,6 +46,10 @@ print_debug = 'MESON_PRINT_TEST_OUTPUT' in os.environ
test_build_dir = 'work area'
install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir')
meson_command = os.path.join(os.getcwd(), 'meson')
+if not os.path.exists(meson_command):
+ meson_command += '.py'
+ if not os.path.exists(meson_command):
+ raise RuntimeError('Could not find main Meson script to run.')
class StopException(Exception):
def __init__(self):