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:
committed by
Pavel Emelyanov
parent
c9b6614eef
commit
1f3b76b07a
@@ -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)
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user