system-tests: Fix behavior when dump directory is missing 32/253932/2
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 19 Feb 2021 10:41:07 +0000 (11:41 +0100)
committerMichal Bloch <m.bloch@partner.samsung.com>
Thu, 1 Jul 2021 15:16:34 +0000 (15:16 +0000)
Since crash-manager is responsible for creating dump directory
(commit 96a11f21e013e1de3d02ee438c4291d55de56e9e), the
absence of this directory cannot be considered as an error.

Change-Id: I8db05869c951b3d9b893a223d020dc146ba9455f

tests/system/utils/minicore-utils.sh

index 2805d54..c9740f0 100644 (file)
@@ -81,11 +81,9 @@ function clean_crash_dump {
 
     sleep 1
 
-    if [ -d ${CRASH_DUMP_PATH} ]; then
-        fail "${CRASH_DUMP_PATH} does not exist"
+    if [ -d ${CRASH_DUMP_PATH} ]; then
+        rm -rf ${CRASH_DUMP_PATH}/*
     fi
-
-    rm -rf ${CRASH_DUMP_PATH}/*
 }
 
 function clean_logdump {