summaryrefslogtreecommitdiff
path: root/travis-ci
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2019-05-16 17:53:57 +0200
committerEvgeny Vereshchagin <evvers@ya.ru>2019-05-16 20:08:00 +0300
commit63dc544b6f048b68cad57b04e1ad757f983c4223 (patch)
tree4acdc77b62da5ec24e5b71e02d4f148c88e05565 /travis-ci
parent6cda6774bdd90f8496d38dcd75d9be8a12660577 (diff)
downloadsystemd-63dc544b6f048b68cad57b04e1ad757f983c4223.tar.gz
tests: make docker-run and helper.py happy by not using colons in filenames
This should address https://github.com/google/oss-fuzz/issues/2428
Diffstat (limited to 'travis-ci')
-rwxr-xr-xtravis-ci/managers/fuzzbuzz.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/travis-ci/managers/fuzzbuzz.sh b/travis-ci/managers/fuzzbuzz.sh
index 0a296f75f8..a56c3d753b 100755
--- a/travis-ci/managers/fuzzbuzz.sh
+++ b/travis-ci/managers/fuzzbuzz.sh
@@ -16,7 +16,13 @@ git clone https://github.com/google/oss-fuzz /tmp/oss-fuzz
cd /tmp/oss-fuzz
sudo ./infra/helper.py pull_images
+# docker doesn't like colons in filenames so let's create a directory
+# whose name can be consumed by the -v option.
+# https://github.com/google/oss-fuzz/issues/2428
+t=$(mktemp -d)
+sudo mount --bind "$REPO_ROOT" "$t"
+
# 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 build_fuzzers --clean --sanitizer=memory systemd $t"
sudo script -e -c "./infra/helper.py check_build --sanitizer=memory systemd"