Skip to content

Commit

Permalink
Don't run isolate tests when not instructed to.
Browse files Browse the repository at this point in the history
  • Loading branch information
mraron committed Feb 11, 2024
1 parent 1e53dd4 commit 4af7245
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/language/sandbox/isolate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package sandbox_test
import (
"context"
"flag"
"github.com/mraron/njudge/pkg/language/internal/testutils"
"github.com/mraron/njudge/pkg/language/sandbox"
"github.com/stretchr/testify/assert"
"log/slog"
Expand All @@ -13,6 +14,10 @@ import (
var verbose = flag.Bool("verbose", false, "log sandbox")

func TestIsolate_Run(t *testing.T) {
if !*testutils.UseIsolate {
t.Skip("-isolate is not set")
}

testcases := []struct {
name string
config sandbox.RunConfig
Expand Down

0 comments on commit 4af7245

Please sign in to comment.