Force crash-worker to create reports 47/85247/8
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 23 Aug 2016 11:33:30 +0000 (13:33 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 6 Dec 2016 15:37:14 +0000 (16:37 +0100)
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 <a.mistewicz@samsung.com>
tct/run/smoke_tests.sh

index 8928c34..e007a0c 100755 (executable)
@@ -17,6 +17,8 @@
 # Author: Aleksander Mistewicz <a.mistewicz@samsung.com>
 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)"