projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b66051
)
test-29-portable: extend timeout for slower environment
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 31 Aug 2022 14:10:43 +0000
(23:10 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 31 Aug 2022 14:32:57 +0000
(23:32 +0900)
test/units/testsuite-29.sh
patch
|
blob
|
history
diff --git
a/test/units/testsuite-29.sh
b/test/units/testsuite-29.sh
index 3b1395619ac63c309f5b8726faa9c3c49486eb02..e56dad991e4743121187c729927294997553a26b 100755
(executable)
--- a/
test/units/testsuite-29.sh
+++ b/
test/units/testsuite-29.sh
@@
-5,6
+5,17
@@
set -eux
set -o pipefail
+# Set longer timeout for slower machines, e.g. non-KVM vm.
+mkdir -p /run/systemd/system.conf.d
+cat >/run/systemd/system.conf.d/10-timeout.conf <<EOF
+DefaultEnvironment=SYSTEMD_DISSECT_VERITY_TIMEOUT_SEC=30
+ManagerEnvironment=SYSTEMD_DISSECT_VERITY_TIMEOUT_SEC=30
+EOF
+
+systemctl daemon-reexec
+
+export SYSTEMD_DISSECT_VERITY_TIMEOUT_SEC=30
+
ARGS=()
state_directory=/var/lib/private/
if [[ -v ASAN_OPTIONS || -v UBSAN_OPTIONS ]]; then