diff options
author | Eric Multanen <eric.w.multanen@intel.com> | 2021-06-24 20:47:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-06-24 20:47:20 +0000 |
commit | 7168fa41347bf0a0a3ce7f2265e25b1258e1aafd (patch) | |
tree | 8e6d8944bb5c89cc4272223f0416a8be104efc61 /kud/tests/sriov.sh | |
parent | bb729bbebc9a9d4953349fcf79f8a850a36cbd6f (diff) | |
parent | 8d3604540bb1eefc36da8d412caf8c072872dc6e (diff) |
Merge "Fix jq null error in tests"
Diffstat (limited to 'kud/tests/sriov.sh')
-rwxr-xr-x | kud/tests/sriov.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kud/tests/sriov.sh b/kud/tests/sriov.sh index 7aa97f0c..a44aba04 100755 --- a/kud/tests/sriov.sh +++ b/kud/tests/sriov.sh @@ -10,7 +10,7 @@ set -o pipefail -sriov_capable_nodes=$(kubectl get nodes -o json | jq -r '.items[] | select((.status.capacity."intel.com/intel_sriov_700"|tonumber)>=2) | .metadata.name') +sriov_capable_nodes=$(kubectl get nodes -o json | jq -r '.items[] | select((.status.capacity."intel.com/intel_sriov_700"!=null) and ((.status.capacity."intel.com/intel_sriov_700"|tonumber)>=2)) | .metadata.name') if [ -z "$sriov_capable_nodes" ]; then echo "SRIOV test case cannot run on the cluster." exit 0 |