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