From 6c8ba239d534ebdd124993e7a2e2bbc9d672d695 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Thu, 5 Aug 2021 08:38:27 +0200 Subject: [PATCH] TEST-13-*: in busybox container sleep(1) takes a delay in seconds only --- test/create-busybox-container | 1 + test/units/testsuite-13.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/create-busybox-container b/test/create-busybox-container index b2b7b26294..27897cded2 100755 --- a/test/create-busybox-container +++ b/test/create-busybox-container @@ -30,6 +30,7 @@ ln -s busybox "$root/bin/ps" ln -s busybox "$root/bin/ip" ln -s busybox "$root/bin/seq" ln -s busybox "$root/bin/sleep" +ln -s busybox "$root/bin/usleep" ln -s busybox "$root/bin/test" mkdir -p "$root/sbin" diff --git a/test/units/testsuite-13.sh b/test/units/testsuite-13.sh index 8f3c0b2df8..7a6723953a 100755 --- a/test/units/testsuite-13.sh +++ b/test/units/testsuite-13.sh @@ -93,7 +93,7 @@ if echo test >>/run/host/os-release; then exit 1; fi } function check_machinectl_bind { - local _cmd='for i in $(seq 1 20); do if test -f /tmp/marker; then exit 0; fi; sleep 0.5; done; exit 1;' + local _cmd='for i in $(seq 1 20); do if test -f /tmp/marker; then exit 0; fi; usleep 500000; done; exit 1;' cat >/run/systemd/system/nspawn_machinectl_bind.service <