summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-05-25 20:57:31 +0200
committerHelmut Grohne <helmut@subdivi.de>2025-05-25 21:17:01 +0200
commitc0936c1a99a61bcc503d5250c1cb654d375a47c4 (patch)
treebcdc370bab612c691cafca1a0031b043f023ea3b
parentec663d4fe270ac36f167f0e7a576666e174d8842 (diff)
downloaddebvm-c0936c1a99a61bcc503d5250c1cb654d375a47c4.tar.gz
Attempt to limit test reliability by reducing concurrency
-rwxr-xr-xtests/create-and-run.sh3
-rwxr-xr-xtests/dist-upgrades.sh3
-rwxr-xr-xtests/efi-create-and-run.sh3
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/create-and-run.sh b/tests/create-and-run.sh
index fab04bc..d401327 100755
--- a/tests/create-and-run.sh
+++ b/tests/create-and-run.sh
@@ -61,6 +61,9 @@ elif test -n "$MIRROR"; then
fi
debvm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" "$@"
+# Many CPUs tend to cause test timeouts on tcg emulation.
+export OMP_THREAD_LIMIT=4
+
SSH_PORT=2222
timeout 600s debvm-run -s "$SSH_PORT" -i "$IMAGE" &
set -- localhost
diff --git a/tests/dist-upgrades.sh b/tests/dist-upgrades.sh
index 171500a..c05c9d6 100755
--- a/tests/dist-upgrades.sh
+++ b/tests/dist-upgrades.sh
@@ -43,6 +43,9 @@ ssh-keygen -f "$SSH_KEYPATH" -N ''
debvm-create --sshkey="$SSH_KEYPATH.pub" -r jessie --size=3G -- --customize-hook="copy-in upgrade /usr/local/bin" http://archive.debian.org/debian
+# Many CPUs tend to cause test timeouts on tcg emulation.
+export OMP_THREAD_LIMIT=4
+
SSH_PORT=2222
for RELEASE in stretch buster bullseye bookworm trixie sid; do
timeout 15m debvm-run -s "$SSH_PORT" &
diff --git a/tests/efi-create-and-run.sh b/tests/efi-create-and-run.sh
index 2b70662..ed6b64e 100755
--- a/tests/efi-create-and-run.sh
+++ b/tests/efi-create-and-run.sh
@@ -36,6 +36,9 @@ if test -z "$RELEASE"; then
fi
debefivm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" -a "$ARCHITECTURE" "$@"
+# Many CPUs tend to cause test timeouts on tcg emulation.
+export OMP_THREAD_LIMIT=4
+
SSH_PORT=2222
timeout 600s debefivm-run -s "$SSH_PORT" -i "$IMAGE" &
set -- localhost