aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorChristoph Weiss <weiss@wsoptics.de>2019-07-12 10:01:36 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-12 21:51:17 +0300
commit185238fdb479e2f7007ccda47e59b65557b7ee4b (patch)
tree322cef6459eba3105eb9fd647309ebb30cb7a7dd /mesonbuild/mtest.py
parent264533cb67261bcf424f8f84e3a32b43d1704a02 (diff)
downloadmeson-185238fdb479e2f7007ccda47e59b65557b7ee4b.zip
meson-185238fdb479e2f7007ccda47e59b65557b7ee4b.tar.gz
meson-185238fdb479e2f7007ccda47e59b65557b7ee4b.tar.bz2
Change meson test's build failure exit code to 125
Diffstat (limited to 'mesonbuild/mtest.py')
-rw-r--r--mesonbuild/mtest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 1dca075..253f4ab 100644
--- a/mesonbuild/mtest.py
+++ b/mesonbuild/mtest.py
@@ -1021,7 +1021,10 @@ def run(options: argparse.Namespace) -> int:
if not options.list and not options.no_rebuild:
if not rebuild_all(options.wd):
- return 1
+ # We return 125 here in case the build failed.
+ # The reason is that exit code 125 tells `git bisect run` that the current commit should be skipped.
+ # Thus users can directly use `meson test` to bisect without needing to handle the does-not-build case separately in a wrapper script.
+ return 125
with TestHarness(options) as th:
try: