diff options
Diffstat (limited to 'test/units/testsuite-41.sh')
-rwxr-xr-x | test/units/testsuite-41.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-41.sh b/test/units/testsuite-41.sh index 527213fcf8..e7993e8df7 100755 --- a/test/units/testsuite-41.sh +++ b/test/units/testsuite-41.sh @@ -12,7 +12,7 @@ systemd-analyze log-target console systemd-run --unit=one -p Type=oneshot -p Restart=on-failure /bin/bash -c "exit 1" \ && { echo 'unexpected success'; exit 1; } -for ((secs=0; secs<$MAX_SECS; secs++)); do +for ((secs = 0; secs < MAX_SECS; secs++)); do [[ "$(systemctl show one.service -P NRestarts)" -le 0 ]] || break sleep 1 done @@ -35,7 +35,7 @@ systemd-run --unit=two \ && { echo 'unexpected success'; exit 1; } # wait for at least 3 restarts -for ((secs=0; secs<$MAX_SECS; secs++)); do +for ((secs = 0; secs < MAX_SECS; secs++)); do [[ $(cat $TMP_FILE) != "aaa" ]] || break sleep 1 done |