summaryrefslogtreecommitdiffstats
path: root/kud/tests/qat.sh
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2021-06-17 17:06:58 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2021-06-17 17:11:43 -0700
commit8d3604540bb1eefc36da8d412caf8c072872dc6e (patch)
tree492edeaf5b1a3e1b8f3c41edcc15b46b2a58e96d /kud/tests/qat.sh
parentdc925231a978d1ae4dce969cb4c386d4a1b0bb87 (diff)
Fix jq null error in tests
The specific error is: jq: error (at <stdin>:1232): null (null) cannot be parsed as a number Issue-ID: MULTICLOUD-1361 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: I1821e5002260cd65ac467756753e2a2ffa01a4ce
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