Commit 1ca043ea authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Pavel Emelyanov

zdtm: fix bashisms

`< $FILE` isn't posix compatible and doesn't work in dash
Signed-off-by: 's avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Acked-by: 's avatarAndrey Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 80a8cb80
...@@ -142,7 +142,7 @@ fifo-rowo-pair.pid: fifo-rowo-pair ...@@ -142,7 +142,7 @@ fifo-rowo-pair.pid: fifo-rowo-pair
$(<D)/$(<F) --pidfile=$@ --outfile=$<.out --name_master=$<.master.test --name_slave=$<.slave.test $(<D)/$(<F) --pidfile=$@ --outfile=$<.out --name_master=$<.master.test --name_slave=$<.slave.test
%.out: %.pid % %.out: %.pid %
-kill -TERM `< $<` -kill -TERM `cat $<`
$(TST_STATE:%=%.state): %.state: % $(TST_STATE:%=%.state): %.state: %
$(<D)/$(<F) --statefile=$@ --outfile=$<.out start $(<D)/$(<F) --statefile=$@ --outfile=$<.out start
...@@ -153,7 +153,7 @@ $(TST_STATE:%=%.out): %.out: % %.state ...@@ -153,7 +153,7 @@ $(TST_STATE:%=%.out): %.out: % %.state
start: $(PID) $(STATE) start: $(PID) $(STATE)
%.is_running: %.pid %.is_running: %.pid
kill -0 `< $<` kill -0 `cat $<`
check_start: $(PID:%.pid=%.is_running) check_start: $(PID:%.pid=%.is_running)
......
...@@ -36,12 +36,12 @@ $(TST_FILE:%=%.pid): %.pid: % ...@@ -36,12 +36,12 @@ $(TST_FILE:%=%.pid): %.pid: %
$(<D)/$(<F) --pidfile=$@ --outfile=$<.out --filename=$<.test $(<D)/$(<F) --pidfile=$@ --outfile=$<.out --filename=$<.test
%.out: %.pid % %.out: %.pid %
-kill -TERM `< $<` -kill -TERM `cat $<`
start: $(PID) start: $(PID)
%.is_running: %.pid %.is_running: %.pid
kill -0 `< $<` kill -0 `cat $<`
check_start: $(PID:%.pid=%.is_running) check_start: $(PID:%.pid=%.is_running)
......
...@@ -33,12 +33,12 @@ $(TST_FILE:%=%.pid): %.pid: % ...@@ -33,12 +33,12 @@ $(TST_FILE:%=%.pid): %.pid: %
$(<D)/$(<F) --pidfile=$@ --outfile=$<.out --filename=$<.test $(<D)/$(<F) --pidfile=$@ --outfile=$<.out --filename=$<.test
%.out: %.pid % %.out: %.pid %
-kill -TERM `< $<` -kill -TERM `cat $<`
start: $(PID) start: $(PID)
%.is_running: %.pid %.is_running: %.pid
kill -0 `< $<` kill -0 `cat $<`
check_start: $(PID:%.pid=%.is_running) check_start: $(PID:%.pid=%.is_running)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment