]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-13-*: in busybox container sleep(1) takes a delay in seconds only
authorFranck Bui <fbui@suse.com>
Thu, 5 Aug 2021 06:38:27 +0000 (08:38 +0200)
committerFranck Bui <fbui@suse.com>
Wed, 18 Aug 2021 15:37:55 +0000 (17:37 +0200)
test/create-busybox-container
test/units/testsuite-13.sh

index b2b7b262940b2a9de85e56a0af8911cf866d7c58..27897cded2b1a0e17318d0ae578a81bb5cefab39 100755 (executable)
@@ -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"
index 8f3c0b2df83df90d08a728b7b1cd97e531cc22cc..7a6723953a46b3c82a9d6d21e02101b50033bc87 100755 (executable)
@@ -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 <<EOF
 [Service]