diff options
author | Mateusz Moscicki <m.moscicki2@partner.samsung.com> | 2021-02-19 11:41:07 +0100 |
---|---|---|
committer | Michal Bloch <m.bloch@partner.samsung.com> | 2021-07-01 15:16:34 +0000 |
commit | a9868fda7cd7166ed4cc66c17c0535ca6ea0daf1 (patch) | |
tree | 5943c539837ffde311d934926619428df3bbad3b | |
parent | e3d53e934e15a6922402b0e60e1189e47805aa64 (diff) | |
download | crash-worker-a9868fda7cd7166ed4cc66c17c0535ca6ea0daf1.tar.gz crash-worker-a9868fda7cd7166ed4cc66c17c0535ca6ea0daf1.tar.bz2 crash-worker-a9868fda7cd7166ed4cc66c17c0535ca6ea0daf1.zip |
system-tests: Fix behavior when dump directory is missing
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
-rw-r--r-- | tests/system/utils/minicore-utils.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/system/utils/minicore-utils.sh b/tests/system/utils/minicore-utils.sh index 2805d54..c9740f0 100644 --- a/tests/system/utils/minicore-utils.sh +++ b/tests/system/utils/minicore-utils.sh @@ -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 { |