From 44ab6ecff83d5329eaab0624055494bfafb2080a Mon Sep 17 00:00:00 2001 From: Nestor Acuna Blanco Date: Thu, 25 Jul 2024 08:49:58 +0200 Subject: [PATCH] fix: verification of the python openshift requirement The unit-tests.sh script may fail at an advanced stage if the python openShift module is not installed. Failing at the initial step alerts the user to this requirement. Signed-off-by: Nestor Acuna Blanco --- automation/unit-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/automation/unit-tests.sh b/automation/unit-tests.sh index 4dc5059f..d0bae3a8 100755 --- a/automation/unit-tests.sh +++ b/automation/unit-tests.sh @@ -1,6 +1,9 @@ #!/bin/bash set -ex +# dependency check +pip show -q openshift + #syntax check templates=$(ls dist/templates/*) namespace="kubevirt"