summaryrefslogtreecommitdiffstats
path: root/tests/ts
diff options
context:
space:
mode:
authorKarel Zak2017-11-28 12:00:58 +0100
committerKarel Zak2017-11-28 12:00:58 +0100
commit68433f1e318e205aeb04e7a37c7acb7c67d18ffe (patch)
treefa9ae833d5b5d11cad9889751ddf3eeca7d7965d /tests/ts
parenttests: better lsns report on fail (diff)
downloadkernel-qcow2-util-linux-68433f1e318e205aeb04e7a37c7acb7c67d18ffe.tar.gz
kernel-qcow2-util-linux-68433f1e318e205aeb04e7a37c7acb7c67d18ffe.tar.xz
kernel-qcow2-util-linux-68433f1e318e205aeb04e7a37c7acb7c67d18ffe.zip
tests: add set-x to lsns test
.. just to see why does it fail on Travis. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts')
-rwxr-xr-xtests/ts/lsns/nsfs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ts/lsns/nsfs b/tests/ts/lsns/nsfs
index 7632ecae9..b229f57f1 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:**"