Skip to content

Commit

Permalink
Only run sql suite tests on windows SQL server images (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-crate authored Jan 11, 2024
1 parent 809f466 commit d6deecc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imagetest/test_suites/sql/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sql

import (
"embed"
"strings"

"github.com/GoogleCloudPlatform/guest-test-infra/imagetest"
"github.com/GoogleCloudPlatform/guest-test-infra/imagetest/utils"
Expand Down Expand Up @@ -29,7 +30,7 @@ const (

// TestSetup sets up the test workflow.
func TestSetup(t *imagetest.TestWorkflow) error {
if utils.HasFeature(t.Image, "WINDOWS") {
if utils.HasFeature(t.Image, "WINDOWS") && strings.Contains(t.Image.Name, "sql") {
defaultNetwork, err := t.CreateNetwork("default-network", false)
if err != nil {
return err
Expand Down

0 comments on commit d6deecc

Please sign in to comment.