Skip to content

Commit 1e88c8e

Browse files
committed
gopy: simplify test output error if diff is available
Signed-off-by: Sebastien Binet <[email protected]>
1 parent 3b3e9b5 commit 1e88c8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,10 @@ func testPkgBackend(t *testing.T, pyvm string, table pkg) {
10551055
diff, _ := cmd.CombinedOutput()
10561056
diffTxt = string(diff) + "\n"
10571057
}
1058+
t.Fatalf("[%s:%s]: error running python module:\n%s",
1059+
pyvm, table.path,
1060+
diffTxt,
1061+
)
10581062
}
10591063

10601064
t.Fatalf("[%s:%s]: error running python module:\ngot:\n%s\n\nwant:\n%s\n[%s:%s] diff:\n%s",

0 commit comments

Comments
 (0)