From: Aleksander Mistewicz Date: Tue, 23 Aug 2016 11:33:30 +0000 (+0200) Subject: Force crash-worker to create reports X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31ac1822c9887a82bb788a38a0f0627c26ead5ed;p=tools%2Ftestlab%2Fmajor.git 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 --- 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)"