Smoke tests update

**cache_suspend 03**: added 'if' statement to recognize nvme disk and pass test correctly;
**init_script 03**: added '--force' option to start cache with 'casadm' command.

Signed-off-by: Slawomir_Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
Slawomir_Jankowski
2019-08-21 13:27:16 +02:00
parent df5249ecfd
commit 91efcc528b
2 changed files with 5 additions and 1 deletions

View File

@@ -28,6 +28,10 @@ TEST_COUNT_HALF=16384
#param device
get_stat_sectors_read() {
L_DEVICE=$(basename $1)
if [[ ${L_DEVICE} =~ "nvme" ]]
then
L_DEVICE="${L_DEVICE:0:${#L_DEVICE}-1}p${L_DEVICE: -1}"
fi
L_STAT=$(cat /proc/diskstats | grep $L_DEVICE | awk '{ print $6 }')
echo $L_STAT
}