Print the syslog when the application does not start 94/25094/1
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 10 Aug 2020 18:22:20 +0000 (20:22 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 10 Aug 2020 18:22:20 +0000 (20:22 +0200)
Dump the journal when the app does not start.

Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: Ia886e87599721deca57dd8664c6637c3cd1f9b3f

common/scripts/application-lifecycle.sh

index 0935fd2..e0837a6 100755 (executable)
@@ -209,6 +209,7 @@ do
        if [ $? -ne 0 ];then
                echo "ERROR: afm-util start"
                lava-test-case afm-util-start-$WGTNAME --result fail
+               journalctl -an 200
                continue
        else
                lava-test-case afm-util-start-$WGTNAME --result pass
@@ -275,6 +276,7 @@ do
        if [ $? -ne 0 ];then
                echo "ERROR: afm-util start2"
                lava-test-case afm-util-start2-$WGTNAME --result fail
+               journalctl -an 200
                continue
        else
                lava-test-case afm-util-start2-$WGTNAME --result pass