Commit 835d60432082b87984211b60ab82791c01011b1b

Patrick Steinhardt 2018-08-03T10:01:59

ci: fix location of fuzzer corpora on VSTS When using VSTS-based builds, we are in a different location than when doing Travis builds. Due to this, the relative path to our fuzzer corpora does not work on VSTS. Fix it by using `${SOURCE_DIR}` instead.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ci/test.sh b/ci/test.sh
index 0a1cff2..a9a8537 100755
--- a/ci/test.sh
+++ b/ci/test.sh
@@ -191,7 +191,7 @@ if [ -z "$SKIP_FUZZERS" ]; then
 	echo "##############################################################################"
 
 	for fuzzer in fuzzers/*_fuzzer; do
-		"${fuzzer}" "../fuzzers/corpora/$(basename "${fuzzer%_fuzzer}")" || die $?
+		"${fuzzer}" "${SOURCE_DIR}/fuzzers/corpora/$(basename "${fuzzer%_fuzzer}")" || die $?
 	done
 fi