aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorKiminuo <kiminuo@protonmail.com>2021-06-30 11:58:58 +0200
committerKiminuo <kiminuo@protonmail.com>2021-06-30 11:59:49 +0200
commit30450a1bd5d278e285f50a7e4cfc755545960e92 (patch)
treec0ab2894c63b451e51ac0a13488a647d6aa71b93 /ci
parent3fc20abab03d71a982d6fe9c47155834b256ab17 (diff)
downloadbitcoin-30450a1bd5d278e285f50a7e4cfc755545960e92.tar.xz
Do not clone qa-assets git repository if not necessary
Diffstat (limited to 'ci')
-rwxr-xr-xci/test/04_install.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/ci/test/04_install.sh b/ci/test/04_install.sh
index 906e4aae60..2079d2ed2b 100755
--- a/ci/test/04_install.sh
+++ b/ci/test/04_install.sh
@@ -84,11 +84,14 @@ fi
DOCKER_EXEC echo "Free disk space:"
DOCKER_EXEC df -h
-if [ ! -d ${DIR_QA_ASSETS} ]; then
- DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
+if [ "$RUN_FUZZ_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
+ if [ ! -d ${DIR_QA_ASSETS} ]; then
+ DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
+ fi
+
+ export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
+ export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
fi
-export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
-export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
DOCKER_EXEC mkdir -p "${BASE_SCRATCH_DIR}/sanitizer-output/"