Commit 6cc9482a authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrey Vagin

test/zdtm.sh: simplify showing list of tests

echo normalizes spaces, tr converts them into newlines
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrey Vagin <avagin@gmail.com>
parent 60a35bfa
...@@ -107,9 +107,7 @@ if [ $# -eq 0 ]; then ...@@ -107,9 +107,7 @@ if [ $# -eq 0 ]; then
run_test $t -n ipc || case_error $t run_test $t -n ipc || case_error $t
done done
elif [ "$1" == "-l" ]; then elif [ "$1" == "-l" ]; then
echo $TEST_LIST | sed -e "s#$ZP/##g" -e 's/ /\n/g' echo $TEST_LIST $UTS_TEST_LIST $IPC_TEST_LIST | tr ' ' '\n'
echo $UTS_TEST_LIST | sed -e "s#$ZP/##g" -e 's/ /\n/g'
echo $IPC_TEST_LIST | sed -e "s#$ZP/##g" -e 's/ /\n/g'
else else
if echo $UTS_TEST_LIST | fgrep -qw $1; then if echo $UTS_TEST_LIST | fgrep -qw $1; then
run_test $1 -n uts || case_error $1 run_test $1 -n uts || case_error $1
......
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