]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test/TEST-30-ISCSI: depend on tgtd and tgtadm
authorHarald Hoyer <harald@redhat.com>
Mon, 22 Aug 2016 11:32:03 +0000 (13:32 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 2 Sep 2016 05:51:55 +0000 (07:51 +0200)
the testsuite now needs tgtd and tgtadm and not iscsi-target

test/TEST-30-ISCSI/test.sh

index 63944b3a6315e3eb1d2f68500a46ca528d94f2e7..d4f0f8c61e371edb4335e6fa84911fb79856f4f8 100755 (executable)
@@ -138,8 +138,8 @@ test_run() {
 }
 
 test_setup() {
-    if [ ! -x /usr/sbin/iscsi-target ]; then
-        echo "Need iscsi-target from netbsd-iscsi"
+    if ! command -v tgtd &>/dev/null || ! command -v tgtadm &>/dev/null; then
+        echo "Need tgtd and tgtadm from scsi-target-utils"
         return 1
     fi