summaryrefslogtreecommitdiffstats
path: root/kud/tests/qat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kud/tests/qat.sh')
-rwxr-xr-xkud/tests/qat.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kud/tests/qat.sh b/kud/tests/qat.sh
index 11fb6ca0..98c0bb72 100755
--- a/kud/tests/qat.sh
+++ b/kud/tests/qat.sh
@@ -10,7 +10,7 @@
set -o pipefail
-qat_capable_nodes=$(kubectl get nodes -o json | jq -r '.items[] | select((.status.capacity."qat.intel.com/cy2_dc2"|tonumber)>=1) | .metadata.name')
+qat_capable_nodes=$(kubectl get nodes -o json | jq -r '.items[] | select((.status.capacity."qat.intel.com/cy2_dc2"!=null) and ((.status.capacity."qat.intel.com/cy2_dc2"|tonumber)>=1)) | .metadata.name')
if [ -z "$qat_capable_nodes" ]; then
echo "This test case cannot run. QAT device unavailable."
QAT_ENABLED=False