aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-12-08 09:58:07 +0100
committerOliver Smith <osmith@sysmocom.de>2022-12-08 13:41:56 +0100
commite3a3b986a607021549e8e7e8e556c06acf67a475 (patch)
tree7523b50d371ef428e0615a98b2738acb8fffd81f
parentcdaac6e2daf4fa62c069c2d11b72a2c233aa8a48 (diff)
repo-install-test: add SKIP_PREPARE_VM env var
-rwxr-xr-xscripts/repo-install-test.sh2
-rwxr-xr-xscripts/repo-install-test/run-inside.sh8
2 files changed, 9 insertions, 1 deletions
diff --git a/scripts/repo-install-test.sh b/scripts/repo-install-test.sh
index 300357c..38f1a6b 100755
--- a/scripts/repo-install-test.sh
+++ b/scripts/repo-install-test.sh
@@ -5,6 +5,7 @@
# * KEEP_VM: for development: don't kill/start VM if still running
# * PROJ: OBS project namespace (e.g. "osmocom:latest")
# * PROJ_CONFLICT: Conflicting OBS project namespace (e.g. "osmocom:nightly")
+# * SKIP_PREPARE_VM: for development, skip the prepare_vm code
# * TESTS: which tests to run (all by default, see below for possible values)
. "$(dirname "$0")/common.sh"
@@ -138,6 +139,7 @@ qemu_run_test_script() {
export FEED="$FEED"
export PROJ="$PROJ"
export PROJ_CONFLICT="$PROJ_CONFLICT"
+ export SKIP_PREPARE_VM="$SKIP_PREPARE_VM"
export TESTS="$TESTS"
/repo-install-test/run-inside.sh
diff --git a/scripts/repo-install-test/run-inside.sh b/scripts/repo-install-test/run-inside.sh
index 5f01524..5e6a852 100755
--- a/scripts/repo-install-test/run-inside.sh
+++ b/scripts/repo-install-test/run-inside.sh
@@ -5,6 +5,7 @@
# * KEEP_CACHE: set to 1 to keep downloaded binary packages (for development)
# * PROJ: OBS project namespace (e.g. "osmocom:latest")
# * PROJ_CONFLICT: Conflicting OBS project namespace (e.g. "osmocom:nightly")
+# * SKIP_PREPARE_VM: for development, skip the prepare_vm code
# * TESTS: which tests to run (see repo-install-test.sh)
# Systemd services that must start up successfully after installing all packages (OS#3369)
@@ -189,6 +190,10 @@ prepare_vm_centos() {
}
prepare_vm() {
+ if [ -n "$SKIP_PREPARE_VM" ]; then
+ return
+ fi
+
case "$DISTRO" in
debian*)
prepare_vm_debian
@@ -197,6 +202,8 @@ prepare_vm() {
prepare_vm_centos
;;
esac
+
+ configure_osmocom_repo "$PROJ"
}
# $1: file
@@ -416,7 +423,6 @@ services_check() {
check_env
prepare_vm
-configure_osmocom_repo "$PROJ"
for test in $TESTS; do
set +x