summaryrefslogtreecommitdiff
path: root/travis-ci
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2019-05-12 05:57:10 +0200
committerEvgeny Vereshchagin <evvers@ya.ru>2019-05-14 12:22:03 +0200
commitfa8ac5eb777f4367ed615d77da79904a0570a81f (patch)
treeb52076bdc729c256833ed8671dad1381b68bb2b7 /travis-ci
parente5984b1d1b426c67dc45571d82b03d51d4474f5b (diff)
downloadsystemd-fa8ac5eb777f4367ed615d77da79904a0570a81f.tar.gz
tests: make fuzzbuzz.sh compatible with Azure Piplines
Diffstat (limited to 'travis-ci')
-rwxr-xr-xtravis-ci/managers/fuzzbuzz.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/travis-ci/managers/fuzzbuzz.sh b/travis-ci/managers/fuzzbuzz.sh
index d3a91ea328..0a296f75f8 100755
--- a/travis-ci/managers/fuzzbuzz.sh
+++ b/travis-ci/managers/fuzzbuzz.sh
@@ -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"