summaryrefslogtreecommitdiff
path: root/tct
diff options
context:
space:
mode:
authorAleksander Mistewicz <a.mistewicz@samsung.com>2016-08-23 13:33:30 +0200
committerAleksander Mistewicz <a.mistewicz@samsung.com>2016-12-06 16:37:14 +0100
commit31ac1822c9887a82bb788a38a0f0627c26ead5ed (patch)
tree11d3b6f3cab59d976de9671a376b650d00fa63da /tct
parent726baa7b149cf351b6d8ca4e96183c2308590b2e (diff)
downloadmajor-31ac1822c9887a82bb788a38a0f0627c26ead5ed.tar.gz
major-31ac1822c9887a82bb788a38a0f0627c26ead5ed.tar.bz2
major-31ac1822c9887a82bb788a38a0f0627c26ead5ed.zip
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 <a.mistewicz@samsung.com>
Diffstat (limited to 'tct')
-rwxr-xr-xtct/run/smoke_tests.sh2
1 files changed, 2 insertions, 0 deletions
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 <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)"