Blame SOURCES/0467-TEST-ISCSI-fix-command-check.patch

712866
From 13a61f82ba6379d407d45bb9225099cd755e3c5b Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Fri, 11 Nov 2016 11:34:33 +0100
712866
Subject: [PATCH] TEST-ISCSI: fix command check
712866
712866
---
712866
 test/TEST-30-ISCSI/test.sh | 4 ++--
712866
 1 file changed, 2 insertions(+), 2 deletions(-)
712866
712866
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
5c6c2a
index 62bef9cc..da86b837 100755
712866
--- a/test/TEST-30-ISCSI/test.sh
712866
+++ b/test/TEST-30-ISCSI/test.sh
712866
@@ -136,8 +136,8 @@ test_run() {
712866
 }
712866
 
712866
 test_setup() {
712866
-    if [ ! -x /usr/sbin/iscsi-target ]; then
712866
-        echo "Need iscsi-target from netbsd-iscsi"
712866
+    if ! command -v tgtd &>/dev/null || ! command -v tgtadm &>/dev/null; then
712866
+        echo "Need tgtd and tgtadm from scsi-target-utils"
712866
         return 1
712866
     fi
712866