summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-41.sh
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-04-09 19:50:52 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2021-04-13 12:08:01 +0200
commitf79409835665a8ae600249d97671f05706b6dc78 (patch)
tree1d721fe827a11ab0d423ddbfb83835d1ce30497e /test/units/testsuite-41.sh
parenttest: use quotes where necessary (diff)
downloadsystemd-f79409835665a8ae600249d97671f05706b6dc78.tar.xz
systemd-f79409835665a8ae600249d97671f05706b6dc78.zip
test: tidy up arithmetic expressions
Diffstat (limited to 'test/units/testsuite-41.sh')
-rwxr-xr-xtest/units/testsuite-41.sh4
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