commit c9ea9d22338e4894d5813ebb8320be3030855e81
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Fri Feb 20 16:48:28 2015 +0100
regression-tests: fix killing lnst-slaves after testing
The if test was wrong so lnst-slave processes weren't being killed
properly.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
regression-tests/run-test.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/regression-tests/run-test.sh b/regression-tests/run-test.sh
index 1c9c657..0ccb4db 100755
--- a/regression-tests/run-test.sh
+++ b/regression-tests/run-test.sh
@@ -219,7 +219,7 @@ print_separator
sleep 1
# Cleanup
-if [ $slave_status ]; then
+if [ -n "$slave_status" ]; then
while read line; do
hostname=`awk '{print $1}' <<<"$line"`
pid=`awk '{print $2}' <<<"$line"`
Show replies by date