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>
# 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)"