Skip to content

Commit

Permalink
testscript: remove leading newline before results
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfield authored and mvdan committed Aug 22, 2022
1 parent 0d96cbe commit c16c0a2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion testscript/testdata/big_diff.txt
Expand Up @@ -7,7 +7,6 @@ env
cmpenv stdout stdout.golden

-- stdout.golden --

> cmp a b
FAIL: $$WORK${/}dir${/}script.txt:1: large files a and b differ
-- dir/script.txt --
Expand Down
1 change: 0 additions & 1 deletion testscript/testdata/long_diff.txt
Expand Up @@ -110,7 +110,6 @@ cmpenv stdout stdout.golden
>a
>a
-- stdout.golden --

> cmp a b
--- a
+++ b
Expand Down
2 changes: 1 addition & 1 deletion testscript/testscript.go
Expand Up @@ -426,7 +426,7 @@ func (ts *TestScript) run() {

markTime()
// Flush testScript log to testing.T log.
ts.t.Log("\n" + ts.abbrev(ts.log.String()))
ts.t.Log(ts.abbrev(ts.log.String()))
}()
defer func() {
ts.deferred()
Expand Down

0 comments on commit c16c0a2

Please sign in to comment.