summaryrefslogtreecommitdiffstats
path: root/tests/ts/eject
diff options
context:
space:
mode:
authorRuediger Meier2016-02-10 23:29:42 +0100
committerRuediger Meier2016-02-12 14:13:37 +0100
commit6744eedcc7220b155c72f7c8c4723a6b7f9be7ac (patch)
treee4229d2fc8961848d6cd0fba3241cf5102c11436 /tests/ts/eject
parenttests: add some check_test_command requirements (diff)
downloadkernel-qcow2-util-linux-6744eedcc7220b155c72f7c8c4723a6b7f9be7ac.tar.gz
kernel-qcow2-util-linux-6744eedcc7220b155c72f7c8c4723a6b7f9be7ac.tar.xz
kernel-qcow2-util-linux-6744eedcc7220b155c72f7c8c4723a6b7f9be7ac.zip
tests: disable eject for broken kernels
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/eject')
-rwxr-xr-xtests/ts/eject/umount7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ts/eject/umount b/tests/ts/eject/umount
index a6634d5e6..28b2b99a0 100755
--- a/tests/ts/eject/umount
+++ b/tests/ts/eject/umount
@@ -12,6 +12,13 @@ ts_check_test_command "$TS_CMD_EJECT"
ts_skip_nonroot
ts_check_prog "mkfs.ext2"
+# scsi_debug could not eject for kernel >=3.19 and <4.4
+if x=$(echo "3.19" && uname -r && echo "4.4") \
+ && test "$x" = "$(echo "$x" | sort --version-sort)"
+then
+ ts_skip "3.19 <= $(uname -sr) < 4.4"
+fi
+
#
# Note that eject --force is required because scsi_debug is
# not removable device.