|
|
05ad79 |
From 609177ec200592dce34bf0ee082c0d2ac8d01b8b Mon Sep 17 00:00:00 2001
|
|
|
05ad79 |
From: Karel Zak <kzak@redhat.com>
|
|
|
05ad79 |
Date: Tue, 17 Oct 2017 12:35:31 +0200
|
|
|
05ad79 |
Subject: [PATCH 141/141] tests: check for mdadm
|
|
|
05ad79 |
|
|
|
05ad79 |
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1454652
|
|
|
05ad79 |
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
|
05ad79 |
---
|
|
|
05ad79 |
tests/ts/blkid/md-raid1-part | 1 +
|
|
|
05ad79 |
tests/ts/eject/umount | 2 +-
|
|
|
05ad79 |
tests/ts/fdisk/align-512-4K-md | 1 +
|
|
|
05ad79 |
3 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
05ad79 |
|
|
|
05ad79 |
diff --git a/tests/ts/blkid/md-raid1-part b/tests/ts/blkid/md-raid1-part
|
|
|
05ad79 |
index 20612ec21..de21bca9a 100755
|
|
|
05ad79 |
--- a/tests/ts/blkid/md-raid1-part
|
|
|
05ad79 |
+++ b/tests/ts/blkid/md-raid1-part
|
|
|
05ad79 |
@@ -22,6 +22,7 @@ TS_DESC="MD raid1 (last partition)"
|
|
|
05ad79 |
. $TS_TOPDIR/functions.sh
|
|
|
05ad79 |
ts_init "$*"
|
|
|
05ad79 |
ts_skip_nonroot
|
|
|
05ad79 |
+ts_check_prog "mdadm"
|
|
|
05ad79 |
|
|
|
05ad79 |
# set global variable TS_DEVICE
|
|
|
05ad79 |
ts_scsi_debug_init dev_size_mb=51 sector_size=512
|
|
|
05ad79 |
diff --git a/tests/ts/eject/umount b/tests/ts/eject/umount
|
|
|
05ad79 |
index 994ddb483..e5cfe2b14 100755
|
|
|
05ad79 |
--- a/tests/ts/eject/umount
|
|
|
05ad79 |
+++ b/tests/ts/eject/umount
|
|
|
05ad79 |
@@ -43,7 +43,7 @@ EOF
|
|
|
05ad79 |
|
|
|
05ad79 |
function deinit_device {
|
|
|
05ad79 |
udevadm settle
|
|
|
05ad79 |
- rmmod scsi_debug
|
|
|
05ad79 |
+ ts_scsi_debug_rmmod
|
|
|
05ad79 |
}
|
|
|
05ad79 |
|
|
|
05ad79 |
|
|
|
05ad79 |
diff --git a/tests/ts/fdisk/align-512-4K-md b/tests/ts/fdisk/align-512-4K-md
|
|
|
05ad79 |
index ad662e0e8..c45a0d43b 100755
|
|
|
05ad79 |
--- a/tests/ts/fdisk/align-512-4K-md
|
|
|
05ad79 |
+++ b/tests/ts/fdisk/align-512-4K-md
|
|
|
05ad79 |
@@ -26,6 +26,7 @@ TS_DESC="align 512/4K +MD"
|
|
|
05ad79 |
. $TS_TOPDIR/functions.sh
|
|
|
05ad79 |
ts_init "$*"
|
|
|
05ad79 |
ts_skip_nonroot
|
|
|
05ad79 |
+ts_check_prog "mdadm"
|
|
|
05ad79 |
|
|
|
05ad79 |
# set global variable TS_DEVICE
|
|
|
05ad79 |
ts_scsi_debug_init dev_size_mb=50 sector_size=512 physblk_exp=3
|
|
|
05ad79 |
--
|
|
|
05ad79 |
2.13.6
|
|
|
05ad79 |
|