Skip to content

Commit 30450a1

Browse files
committed
Do not clone qa-assets git repository if not necessary
1 parent 3fc20ab commit 30450a1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ci/test/04_install.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,14 @@ fi
8484
DOCKER_EXEC echo "Free disk space:"
8585
DOCKER_EXEC df -h
8686

87-
if [ ! -d ${DIR_QA_ASSETS} ]; then
88-
DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
87+
if [ "$RUN_FUZZ_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS" = "true" ] || [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
88+
if [ ! -d ${DIR_QA_ASSETS} ]; then
89+
DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
90+
fi
91+
92+
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
93+
export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
8994
fi
90-
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
91-
export DIR_UNIT_TEST_DATA=${DIR_QA_ASSETS}/unit_test_data/
9295

9396
DOCKER_EXEC mkdir -p "${BASE_SCRATCH_DIR}/sanitizer-output/"
9497

0 commit comments

Comments
 (0)