aboutsummaryrefslogtreecommitdiff
path: root/run_cross_test.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-04-06 07:41:32 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-04-09 23:10:12 +0530
commit323fe43413e52f6408f03c97f4a6904c4113108f (patch)
treeb2a8a6952d64b06aed2ae75bdc9271b8e50ee0f0 /run_cross_test.py
parentd755228afe40aff1a2550b161f34cab888d5b995 (diff)
downloadmeson-323fe43413e52f6408f03c97f4a6904c4113108f.zip
meson-323fe43413e52f6408f03c97f4a6904c4113108f.tar.gz
meson-323fe43413e52f6408f03c97f4a6904c4113108f.tar.bz2
run_project_tests: Clean-up backend detection a bit
Set a global variable that has it so other places can use it, and error out on unknown backends
Diffstat (limited to 'run_cross_test.py')
-rwxr-xr-xrun_cross_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_cross_test.py b/run_cross_test.py
index e285e21..c7895bb 100755
--- a/run_cross_test.py
+++ b/run_cross_test.py
@@ -43,6 +43,7 @@ def runtests(cross_file):
sys.exit(failing_tests)
if __name__ == '__main__':
- setup_commands('ninja')
+ backend = 'ninja'
+ setup_commands()
cross_file = sys.argv[1]
runtests(cross_file)