From: Karel Zak Date: Tue, 28 Nov 2017 11:00:58 +0000 (+0100) Subject: tests: add set-x to lsns test X-Git-Tag: v2.32-rc1~159 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68433f1e318e205aeb04e7a37c7acb7c67d18ffe;p=thirdparty%2Futil-linux.git tests: add set-x to lsns test .. just to see why does it fail on Travis. Signed-off-by: Karel Zak --- diff --git a/tests/ts/lsns/nsfs b/tests/ts/lsns/nsfs index 7632ecae90..b229f57f12 100755 --- a/tests/ts/lsns/nsfs +++ b/tests/ts/lsns/nsfs @@ -48,6 +48,8 @@ function cleanup { ip netns delete $NAME1 } +set -x + ip netns delete $NAME1 2> /dev/null || : $TS_CMD_UMOUNT $PATH2 2>/dev/null || : rm -f $PATH2 @@ -66,6 +68,7 @@ else fi { dd if=/dev/zero bs=1 count=1 2> $NULL + LSNS_FULL=$($TS_CMD_LSNS --type net) NSFS_NAMES_MLINES=$($TS_CMD_LSNS -n -o NSFS --type net --task $PID | { while read VAL; do echo $VAL; done; } ) NSFS_NAMES_1LINE=$($TS_CMD_LSNS -n -o NSFS --nowrap --type net --task $PID | { while read VAL; do echo $VAL; done; } ) dd if=/dev/zero bs=1 count=1 2> $NULL @@ -80,6 +83,9 @@ echo $RESULT >> $TS_OUTPUT if [ $RESULT -ne 0 ]; then echo + echo "**Full-report**" + echo "$LSNS_FULL" + echo "**Paths**" echo "PATH1: $PATH1" echo "PATH2: $PATH2" echo "**Multi-line:**"