From a0603f8c281f090a6d134b522480cccccee59c24 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Tue, 14 May 2019 13:47:56 +0200 Subject: [PATCH] tests: make fuzzbuzz.sh compatible with Azure Pipelines again Now that https://github.com/systemd/systemd/pull/12542 is merged, fuzzbuzz.sh should be changed a little bit to make it work on Azure Pipelines. We can no longer assume that source repositories are added "automagically" by Travis CI or that PATH is set properly. --- travis-ci/managers/fuzzbuzz.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/travis-ci/managers/fuzzbuzz.sh b/travis-ci/managers/fuzzbuzz.sh index 4edf894..74c2252 100755 --- a/travis-ci/managers/fuzzbuzz.sh +++ b/travis-ci/managers/fuzzbuzz.sh @@ -6,12 +6,14 @@ set -u REPO_ROOT=${REPO_ROOT:-$(pwd)} +sudo bash -c "echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse' >>/etc/apt/sources.list" sudo apt-get update -y sudo apt-get build-dep systemd -y sudo apt-get install -y ninja-build python3-pip python3-setuptools pip3 install meson cd $REPO_ROOT +export PATH="$HOME/.local/bin/:$PATH" tools/oss-fuzz.sh timeout --preserve-status 5 ./out/fuzz-unit-file git clean -dxff -- 2.7.4