diff --git a/test/e2e/main_test.go b/test/e2e/main_test.go index 781065f69a..4a9099fc39 100644 --- a/test/e2e/main_test.go +++ b/test/e2e/main_test.go @@ -118,9 +118,12 @@ func TestMain(m *testing.M) { var err error // Get properties - props := provisioner.GetProperties(ctx, cfg) - if props["KBS_IMAGE"] == "" || props["KBS_IMAGE_TAG"] == "" { - return ctx, fmt.Errorf("kbs image not provided") + + if shouldDeployKbs { + props := provisioner.GetProperties(ctx, cfg) + if props["KBS_IMAGE"] == "" || props["KBS_IMAGE_TAG"] == "" { + return ctx, fmt.Errorf("kbs image not provided") + } } if shouldProvisionCluster {