Skip to content

Commit

Permalink
include combined output when running git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT committed Jul 15, 2019
1 parent 9177296 commit 8868c9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/versioner/cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ func Test_updateGoModVerB(t *testing.T) {

func cleanTestData() {
cmd := exec.Command("git", "clean", "-xdf", "../../testdata")
err := cmd.Run()
output, err := cmd.CombinedOutput()
if err != nil {
panic(err)
panic(string(output))
}
cmd = exec.Command("git", "checkout", "--", "../../testdata")
err = cmd.Run()
output, err = cmd.CombinedOutput()
if err != nil {
panic(err)
panic(string(output))
}
}

Expand Down

0 comments on commit 8868c9a

Please sign in to comment.