From: Franck Bui Date: Thu, 5 Aug 2021 06:38:27 +0000 (+0200) Subject: TEST-13-*: in busybox container sleep(1) takes a delay in seconds only X-Git-Tag: v250-rc1~803^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c8ba239d534ebdd124993e7a2e2bbc9d672d695;p=thirdparty%2Fsystemd.git TEST-13-*: in busybox container sleep(1) takes a delay in seconds only --- diff --git a/test/create-busybox-container b/test/create-busybox-container index b2b7b262940..27897cded2b 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 8f3c0b2df83..7a6723953a4 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 <