Skip to content

Commit

Permalink
Add missing global skips for the single-node lane
Browse files Browse the repository at this point in the history
as well as NFS CSI.
Not sure wich declaration belongs to project-infra or kubevirt...

Signed-off-by: Jed Lejosne <[email protected]>
  • Loading branch information
jean-edouard committed May 17, 2022
1 parent 414c1db commit 570273e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ else
export KUBEVIRT_PROVIDER=${TARGET}
fi

# Single-node single-replica test lanes need nfs csi to run sig-storage tests
if [[ $KUBEVIRT_NUM_NODES = "1" && $KUBEVIRT_INFRA_REPLICAS = "1" ]]; then
export KUBEVIRT_DEPLOY_NFS_CSI=true
fi

if [ ! -d "cluster-up/cluster/$KUBEVIRT_PROVIDER" ]; then
echo "The cluster provider $KUBEVIRT_PROVIDER does not exist"
exit 1
Expand Down Expand Up @@ -415,6 +420,16 @@ else
fi
fi

# Single-node single-replica test lanes obviously can't run live migrations,
# but also currently lack the requirements for SRIOV, GPU, Macvtap and MDEVs.
if [[ $KUBEVIRT_NUM_NODES = "1" && $KUBEVIRT_INFRA_REPLICAS = "1" ]]; then
if [ -n "$KUBEVIRT_E2E_SKIP" ]; then
export KUBEVIRT_E2E_SKIP="${KUBEVIRT_E2E_SKIP}|SRIOV|GPU|Macvtap|MediatedDevices|Migration"
else
export KUBEVIRT_E2E_SKIP="SRIOV|GPU|Macvtap|MediatedDevices|Migration"
fi
fi

# If KUBEVIRT_QUARANTINE is not set, do not run quarantined tests. When it is
# set the whole suite (quarantined and stable) will be run.
if [ -z "$KUBEVIRT_QUARANTINE" ]; then
Expand Down

0 comments on commit 570273e

Please sign in to comment.