projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd833b6
)
Skip align test if kernel fails to load scsi_debug.
author
Milan Broz
<gmazyland@gmail.com>
Sat, 1 May 2010 16:04:04 +0000
(16:04 +0000)
committer
Milan Broz
<gmazyland@gmail.com>
Sat, 1 May 2010 16:04:04 +0000
(16:04 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@215
36d66b0a
-2a48-0410-832c-
cd162a569da5
tests/align-test
patch
|
blob
|
history
diff --git
a/tests/align-test
b/tests/align-test
index
41ecd52
..
2fdb9b6
100755
(executable)
--- a/
tests/align-test
+++ b/
tests/align-test
@@
-4,7
+4,7
@@
CRYPTSETUP="../src/cryptsetup"
DEV=""
cleanup() {
- udevadm settle
+ udevadm settle
2>/dev/null 2>&1
rmmod scsi_debug 2>/dev/null
sleep 2
}
@@
-18,6
+18,11
@@
fail()
add_device() {
modprobe scsi_debug $@
+ if [ $? -ne 0 ] ; then
+ echo "This kernel seems to not support proper scsi_debug module, test skipped."
+ exit 0
+ fi
+
sleep 2
DEV=$(grep scsi_debug /sys/block/*/device/model | cut -f4 -d /)