]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: make fuzzbuzz.sh compatible with Azure Piplines
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 12 May 2019 03:57:10 +0000 (05:57 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 14 May 2019 10:22:03 +0000 (12:22 +0200)
travis-ci/managers/fuzzbuzz.sh

index d3a91ea32823f3a087f5a66ac00046c44eb913bc..0a296f75f8a52f7dba2e8f96964bbcc90cdb8e2b 100755 (executable)
@@ -2,6 +2,9 @@
 
 set -e
 set -x
+set -u
+
+REPO_ROOT=${REPO_ROOT:-$(pwd)}
 
 cd $REPO_ROOT
 wget https://app.fuzzbuzz.io/releases/cli/latest/linux/fuzzbuzz
@@ -12,5 +15,8 @@ chmod +x fuzzbuzz
 git clone https://github.com/google/oss-fuzz /tmp/oss-fuzz
 cd /tmp/oss-fuzz
 sudo ./infra/helper.py pull_images
-sudo ./infra/helper.py build_fuzzers --clean --sanitizer=memory systemd $REPO_ROOT
-sudo ./infra/helper.py check_build --sanitizer=memory systemd
+
+# helper.py is wrapped in script to trick it into thinking it's "interactive"
+# See https://github.com/systemd/systemd/pull/12542#issuecomment-491563572
+sudo script -e -c "./infra/helper.py build_fuzzers --clean --sanitizer=memory systemd $REPO_ROOT"
+sudo script -e -c "./infra/helper.py check_build --sanitizer=memory systemd"