2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

test/*/Makefile: remove bash-isms in loops

Need to make it working in Debian where "dash" is default.

Signed-off-by: Konstantin Khorenko <khorenko@parallels.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Konstantin Khorenko
2015-01-24 00:20:00 +03:00
committed by Pavel Emelyanov
parent c9b6614eef
commit 1f3b76b07a
3 changed files with 5 additions and 3 deletions

View File

@@ -266,9 +266,11 @@ stop: $(STATE_OUT)
WAIT_TIME=240
wait_stop:
for ((i = 0; i < $(WAIT_TIME); i++)); do \
i=0; \
while [ $$i -lt $(WAIT_TIME) ] ; do \
kill -0 `cat *.pid 2>/dev/null` 2>/dev/null || break; \
sleep 1; \
i=`expr $$i + 1`; \
done
$(TST): $(LIB)

View File

@@ -56,7 +56,7 @@ stop:
WAIT_TIME=10
wait_stop:
-for ((i = 0; i < $(WAIT_TIME); i++)); do \
-for i in `seq 1 $(WAIT_TIME)`; do \
kill -0 `cat *.pid 2>/dev/null` 2>/dev/null || break; \
sleep 1; \
done

View File

@@ -54,7 +54,7 @@ stop:
WAIT_TIME=10
wait_stop:
-for ((i = 0; i < $(WAIT_TIME); i++)); do \
-for i in `seq 1 $(WAIT_TIME)`; do \
kill -0 `cat *.pid 2>/dev/null` 2>/dev/null || break; \
sleep 1; \
done