From 2a9a77edac0904fbafc231758aa61e6186f7d40c Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Thu, 15 Apr 2021 17:44:52 -0500 Subject: [PATCH] Change cache stopping in recovery tests It is required to stop cache with "--flush=no" when cache device is detached. Signed-off-by: Adam Rutkowski --- test/smoke_test/recovery/01 | 2 +- test/smoke_test/recovery/02 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/smoke_test/recovery/01 b/test/smoke_test/recovery/01 index cdba463..6eb0d0d 100755 --- a/test/smoke_test/recovery/01 +++ b/test/smoke_test/recovery/01 @@ -67,7 +67,7 @@ done SHORT_LINK=$(realpath ${CACHE_DEVICE}) CACHE_DEVICE_OPTION="${CACHE_DEVICE}" turn_off_device for ID in 1 2 3 ; do - DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_ID_OPTION="$ID" stop_cache + DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_DONT_FLUSH_DATA_OPTION="1" CACHE_ID_OPTION="$ID" stop_cache done CACHE_DEVICE_OPTION="${SHORT_LINK}" turn_on_device diff --git a/test/smoke_test/recovery/02 b/test/smoke_test/recovery/02 index db5ff71..7ea8811 100755 --- a/test/smoke_test/recovery/02 +++ b/test/smoke_test/recovery/02 @@ -67,7 +67,7 @@ done SHORT_LINK=$(realpath ${CACHE_DEVICE}) CACHE_DEVICE_OPTION="${CACHE_DEVICE}" turn_off_device for ID in 1 2 3 ; do - DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_ID_OPTION="$ID" stop_cache + DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_DONT_FLUSH_DATA_OPTION="1" CACHE_ID_OPTION="$ID" stop_cache done CACHE_DEVICE_OPTION="${SHORT_LINK}" turn_on_device