]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
oss-fuzz: show meson logs
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 1 Feb 2021 12:40:57 +0000 (12:40 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Feb 2021 13:51:43 +0000 (22:51 +0900)
It should help to make it more clear what causes issues like
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30140
and https://github.com/google/oss-fuzz/pull/5084

tools/oss-fuzz.sh

index 491246b32ba1970724c01169a37fb6c08ba5290e..767da15f7c7f7e249f1eccd7167fd98287dae6a2 100755 (executable)
@@ -38,7 +38,11 @@ else
     fi
 fi
 
-meson $build -D$fuzzflag -Db_lundef=false
+if ! meson $build -D$fuzzflag -Db_lundef=false; then
+    cat $build/meson-logs/meson-log.txt
+    exit 1
+fi
+
 ninja -v -C $build fuzzers
 
 # The seed corpus is a separate flat archive for each fuzzer,