test: bump the test timeout to give ldconfig.service enough time to finish
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 9 Jul 2021 12:44:38 +0000 (14:44 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Jul 2021 12:45:02 +0000 (14:45 +0200)
Sometimes the ldconfig.service might take a bit longer to finish,
causing spurious test timeouts:

```
[ 1025.858923] systemd[24]: ldconfig.service: Executing: /sbin/ldconfig -X
...
[ 1043.883620] systemd[1]: ldconfig.service: Main process exited, code=exited, status=0/SUCCESS (success)
...
Trying to halt container. Send SIGTERM again to trigger immediate
termination.
Container TEST-52-HONORFIRSTSHUTDOWN terminated by signal KILL.
E: Test timed out after 20s
```

(cherry picked from commit 7fb4ee7aa5b6ffdf2e1e8e50a18630aa30f16505)
(cherry picked from commit 610406767b8ddf23a27c919fe52922d35457e0d3)

test/TEST-52-HONORFIRSTSHUTDOWN/test.sh

index a0848ef6723deea89c9cf30b24424b266a797a06..630faa042a439902d14de31acd58d39ae7b482b8 100755 (executable)
@@ -9,7 +9,7 @@ TEST_NO_QEMU=1
 #Using timeout because if the test fails it can loop.
 # The reason is because the poweroff executed by end.service
 # could turn into a reboot if the test fails.
-NSPAWN_TIMEOUT=20
+NSPAWN_TIMEOUT=60
 
 #Remove this file if it exists. this is used along with
 # the make target "finish". Since concrete confirmaion is