aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasatake YAMATO <yamato@redhat.com>2024-04-17 05:57:45 +0900
committerMasatake YAMATO <yamato@redhat.com>2024-04-26 02:20:09 +0900
commit8a66cae8e596f5401da20e98715a21d7a7b8f1ed (patch)
treeb5050326c8d3eb1e81334a43b241f03e8df9bb21
parent93128b74c439e9faba7c7a3912cb4312bcc087d1 (diff)
downloadutil-linux-8a66cae8e596f5401da20e98715a21d7a7b8f1ed.tar.gz
tests: (lsns::ioctl_ns) record stdout/stderr for debugging the case
When the test case runs successfully, we expect the case test prints nothing to stderr. If something is printed to stderr, it helps us debug lsns command and the test case. Signed-off-by: Masatake YAMATO <yamato@redhat.com> (cherry picked from commit 82ecf6cf5495f43716fbe9d72411d8bd5994f75d)
-rw-r--r--tests/expected/lsns/ioctl_ns.err0
-rwxr-xr-xtests/ts/lsns/ioctl_ns2
2 files changed, 1 insertions, 1 deletions
diff --git a/tests/expected/lsns/ioctl_ns.err b/tests/expected/lsns/ioctl_ns.err
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/expected/lsns/ioctl_ns.err
diff --git a/tests/ts/lsns/ioctl_ns b/tests/ts/lsns/ioctl_ns
index 6f306d5b39..195962e868 100755
--- a/tests/ts/lsns/ioctl_ns
+++ b/tests/ts/lsns/ioctl_ns
@@ -95,7 +95,7 @@ init
cleanup
fi
exit $RESULT
-) &
+) >> $TS_ERRLOG 2>&1 &
mainpid=$!
(
exec 4< $FIFO_WAIT