Skip to content

Commit

Permalink
Prevent test from running when it doesn't need to.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Dec 17, 2024
1 parent 3611226 commit 123f8e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/jmx/jmx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ var testRegistry = map[string][]func(*testing.T){

func TestMain(m *testing.M) {
flag.Parse()
if flag.Lookup("test.run").Value.String() == "NO_MATCH" {
os.Exit(0)
}
env := environment.GetEnvironmentMetaData()

if env.Region != "us-west-2" {
Expand Down

0 comments on commit 123f8e5

Please sign in to comment.