projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdcb63b
)
test/NBD: check for nbd kernel module first
author
Harald Hoyer
<harald@redhat.com>
Fri, 16 Apr 2010 15:54:29 +0000
(17:54 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Fri, 16 Apr 2010 15:59:51 +0000
(17:59 +0200)
test/TEST-40-NBD/test.sh
patch
|
blob
|
history
diff --git
a/test/TEST-40-NBD/test.sh
b/test/TEST-40-NBD/test.sh
index
8da1ba4
..
1a46ed1
100755
(executable)
--- a/
test/TEST-40-NBD/test.sh
+++ b/
test/TEST-40-NBD/test.sh
@@
-84,6
+84,7
@@
client_test() {
}
test_run() {
+ modinfo nbd &>/dev/null || { echo "Kernel does not support nbd"; exit 1; }
if ! run_server; then
echo "Failed to start server" 1>&2
return 1
@@
-287,6
+288,9
@@
make_server_root() {
}
test_setup() {
+
+ modinfo nbd &>/dev/null || { echo "Kernel does not support nbd"; exit 1; }
+
make_encrypted_root || return 1
make_client_root || return 1
make_server_root || return 1