Skip to content

Commit

Permalink
skip ionice test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Jun 1, 2024
1 parent bc23244 commit 707b60b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions internal/orchestrator/repo/repo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"context"
"os"
"runtime"
"slices"
"strings"
"testing"
Expand All @@ -23,9 +24,10 @@ func TestBackup(t *testing.T) {
testData := test.CreateTestData(t)

tcs := []struct {
name string
repo *v1.Repo
plan *v1.Plan
name string
repo *v1.Repo
plan *v1.Plan
unixOnly bool
}{
{
name: "backup",
Expand Down Expand Up @@ -56,11 +58,16 @@ func TestBackup(t *testing.T) {
Repo: "test",
Paths: []string{testData},
},
unixOnly: true,
},
}

for _, tc := range tcs {
t.Run(tc.name, func(t *testing.T) {
if tc.unixOnly && runtime.GOOS == "windows" {
t.Skip("skipping on windows")
}

orchestrator, err := NewRepoOrchestrator(configForTest, tc.repo, helpers.ResticBinary(t))
if err != nil {
t.Fatalf("failed to create repo orchestrator: %v", err)
Expand Down

0 comments on commit 707b60b

Please sign in to comment.