summaryrefslogtreecommitdiffstats
path: root/tests/ts/eject
diff options
context:
space:
mode:
authorSami Kerola2014-02-16 16:22:56 +0100
committerKarel Zak2014-03-07 11:52:57 +0100
commit2f791546395cb43f3f93de6c095c812c7cd5237f (patch)
tree0fe025270e9c5acbb15ef7d433c553a72fdfdf1e /tests/ts/eject
parenttools: make config-gen to require build target argument (diff)
downloadkernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.gz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.xz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.zip
tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/eject')
-rwxr-xr-xtests/ts/eject/umount8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/ts/eject/umount b/tests/ts/eject/umount
index b7ea688a8..e781a7ba6 100755
--- a/tests/ts/eject/umount
+++ b/tests/ts/eject/umount
@@ -5,10 +5,14 @@ TS_DESC="umount"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+
+ts_check_test_command "$TS_CMD_FDISK"
+ts_check_test_command "$TS_CMD_EJECT"
+
ts_skip_nonroot
#
-# Note that eject --force is required because scsi_debug is
+# Note that eject --force is required because scsi_debug is
# not removable device.
#
@@ -35,7 +39,7 @@ p
w
EOF
udevadm settle
- mkfs.ext2 -q ${dev}1
+ mkfs.ext2 -q ${dev}1
mkfs.ext2 -q ${dev}2
udevadm settle
}