aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-12-10 19:34:44 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-11 14:20:39 +0200
commitf2b3ab826b9a8b75851853dcf972555fb7e5e2a0 (patch)
treee8f43af8ff830ca746b73ce00b5dd32f920261b3
parent22aedda6d05ebc7bea48fdee4a28b9104f50eeed (diff)
downloadmeson-f2b3ab826b9a8b75851853dcf972555fb7e5e2a0.zip
meson-f2b3ab826b9a8b75851853dcf972555fb7e5e2a0.tar.gz
meson-f2b3ab826b9a8b75851853dcf972555fb7e5e2a0.tar.bz2
If/elif fix so running just mesontest actually runs the tests after doing a rebuild.
-rwxr-xr-xmesontest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesontest.py b/mesontest.py
index 730730b..1921b8a 100755
--- a/mesontest.py
+++ b/mesontest.py
@@ -465,8 +465,8 @@ def run(args):
return th.run_special()
if not options.no_rebuild:
if not th.rebuild_all():
- return -1
- elif len(options.args) == 0:
+ sys.exit(-1)
+ if len(options.args) == 0:
return th.doit()
return th.run_special()