From 31ac1822c9887a82bb788a38a0f0627c26ead5ed Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Tue, 23 Aug 2016 13:33:30 +0200 Subject: Force crash-worker to create reports It takes undefined amount of time for dump_systemstate to gather dlog messages. Therefore Avocado test results were uncomparable. Killing the process causes the script crash-manager.sh to create the report (tar archive). dump_systemstate return value is ignored. Change-Id: I978ea523e4925a15591233e12dd65c446958af18 Signed-off-by: Aleksander Mistewicz --- tct/run/smoke_tests.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tct') diff --git a/tct/run/smoke_tests.sh b/tct/run/smoke_tests.sh index 8928c34..e007a0c 100755 --- a/tct/run/smoke_tests.sh +++ b/tct/run/smoke_tests.sh @@ -17,6 +17,8 @@ # Author: Aleksander Mistewicz OPT_CRASH_PATH="/opt/usr/share/crash" SYS_RESULT_TMP="$(mktemp)" +# Force crash-worker to create reports +killall dump_systemstate systemctl --state=failed | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m]//g" 2>&1 | tee "$SYS_RESULT_TMP" uptime BEFORE="$(journalctl | wc -l)" -- cgit v1.2.3