2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

test/zdtm.sh: simplify showing list of tests

echo normalizes spaces, tr converts them into newlines

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Signed-off-by: Andrey Vagin <avagin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2012-02-06 20:57:27 +04:00
committed by Andrey Vagin
parent 60a35bfaa9
commit 6cc9482a1a

View File

@@ -107,9 +107,7 @@ if [ $# -eq 0 ]; then
run_test $t -n ipc || case_error $t
done
elif [ "$1" == "-l" ]; then
echo $TEST_LIST | sed -e "s#$ZP/##g" -e 's/ /\n/g'
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'
echo $TEST_LIST $UTS_TEST_LIST $IPC_TEST_LIST | tr ' ' '\n'
else
if echo $UTS_TEST_LIST | fgrep -qw $1; then
run_test $1 -n uts || case_error $1