[11/14] test: don't save content of /sys/kernel/debug/tracing/trace

Submitted by Andrey Vagin on June 1, 2018, 9:03 p.m.

Details

Message ID 20180601210304.30164-12-avagin@virtuozzo.com
State Accepted
Series "More changes to be compatible with python 3"
Commit 6c169c5173c9fed20b38830990c4ec0c62beffdb
Headers show

Commit Message

Andrey Vagin June 1, 2018, 9:03 p.m.
We don't tune tracers, so we don't expect to get anything.
In docker containers, debugfs isn't mounted and this command failed.

Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
---
 test/jenkins/criu-lib.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/test/jenkins/criu-lib.sh b/test/jenkins/criu-lib.sh
index 138066943..72d41b57d 100644
--- a/test/jenkins/criu-lib.sh
+++ b/test/jenkins/criu-lib.sh
@@ -33,9 +33,9 @@  function mount_tmpfs_to_dump()
 
 function fail()
 {
+	set +e
 	uname -a
-	ps axf > ps.log
-	cat /sys/kernel/debug/tracing/trace > trace.log
+	ps axf --width 256 > ps.log
 	tar -czf /home/`basename $0`-${BUILD_NUMBER}-${GIT_COMMIT}-$(date +%m%d%H%M).tar.gz .
 	tar -czf report.tar.gz -C test/ report
 	exit 1