laforge submitted this change.

View Change

Approvals: osmith: Verified fixeria: Looks good to me, but someone else must approve laforge: Looks good to me, approved
tests/fetch_image: add SKIP_FETCH_IMAGE env var

Allow skipping the image fetch logic to let the gerrit job copy the
image from another job instead.

Related: osmo-ci I736b2b194813e6edff0197145fe08168c3e66903
Change-Id: I9445d6d5e4723bf6a87d4bffcdc638560471328b
---
M tests/sysmo-octsim/fetch_image.sh
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/sysmo-octsim/fetch_image.sh b/tests/sysmo-octsim/fetch_image.sh
index 119d611..cc673d3 100755
--- a/tests/sysmo-octsim/fetch_image.sh
+++ b/tests/sysmo-octsim/fetch_image.sh
@@ -2,5 +2,11 @@
. ./test-data

echo "fetch image"
-wget -O $DFU_IMAGE http://ftp.osmocom.org/binaries/osmo-ccid-firmware/latest/sysmoOCTSIM.bin -nv
+
+if [ "$SKIP_FETCH_IMAGE" = 1 ]; then
+ echo "skipping fetch image (SKIP_FETCH_IMAGE=1)" >&2
+else
+ wget -O $DFU_IMAGE https://ftp.osmocom.org/binaries/osmo-ccid-firmware/latest/sysmoOCTSIM.bin -nv
+fi
+
echo "done"

To view, visit change 42627. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I9445d6d5e4723bf6a87d4bffcdc638560471328b
Gerrit-Change-Number: 42627
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>