| 648 | } |
| 649 | |
| 650 | func TestFailfastSuiteFailFastOn(t *testing.T) { |
| 651 | // To test this with failfast on (and isolated from other intended test failures in our test suite) we launch it in its own process |
| 652 | cmd := exec.Command("go", "test", "-v", "-race", "-run", "TestFailfastSuite", "-failfast") |
| 653 | var out bytes.Buffer |
| 654 | cmd.Stdout = &out |
| 655 | t.Log("Running go test -v -race -run TestFailfastSuite -failfast") |
| 656 | err := cmd.Run() |
| 657 | t.Log(out.String()) |
| 658 | if err != nil { |
| 659 | t.Log(err) |
| 660 | t.Fail() |
| 661 | } |
| 662 | } |
| 663 | func (s *FailfastSuite) SetupSuite() { |
| 664 | s.call("SetupSuite") |
| 665 | } |