]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add set-x to lsns test
authorKarel Zak <kzak@redhat.com>
Tue, 28 Nov 2017 11:00:58 +0000 (12:00 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Nov 2017 11:00:58 +0000 (12:00 +0100)
.. just to see why does it fail on Travis.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/lsns/nsfs

index 7632ecae90527b30e3c3da8ca74913cdac4d58f0..b229f57f129357ca9029ec232a2a0fa8ac38fe0f 100755 (executable)
@@ -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:**"