Skip to content

Commit c16c0a2

Browse files
bitfieldmvdan
authored andcommitted
testscript: remove leading newline before results
1 parent 0d96cbe commit c16c0a2

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

testscript/testdata/big_diff.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ env
77
cmpenv stdout stdout.golden
88

99
-- stdout.golden --
10-
1110
> cmp a b
1211
FAIL: $$WORK${/}dir${/}script.txt:1: large files a and b differ
1312
-- dir/script.txt --

testscript/testdata/long_diff.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ cmpenv stdout stdout.golden
110110
>a
111111
>a
112112
-- stdout.golden --
113-
114113
> cmp a b
115114
--- a
116115
+++ b

testscript/testscript.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ func (ts *TestScript) run() {
426426

427427
markTime()
428428
// Flush testScript log to testing.T log.
429-
ts.t.Log("\n" + ts.abbrev(ts.log.String()))
429+
ts.t.Log(ts.abbrev(ts.log.String()))
430430
}()
431431
defer func() {
432432
ts.deferred()

0 commit comments

Comments
 (0)