Unverified Commit 05ce1509 authored by Silvano Cerza's avatar Silvano Cerza Committed by GitHub

Fix JSON output not printing newline (#1091)

parent df8c924d
......@@ -118,7 +118,7 @@ func (fb *Feedback) printJSON(v interface{}) {
if d, err := json.MarshalIndent(v, "", " "); err != nil {
fb.Errorf("Error during JSON encoding of the output: %v", err)
} else {
fmt.Fprint(fb.out, string(d))
fmt.Fprintf(fb.out, "%v\n", string(d))
}
}
......
......@@ -442,7 +442,7 @@ def test_board_details(run_command):
# Test board listall with and without showing hidden elements
result = run_command("board listall MIPS --format json")
assert result.ok
assert result.stdout == "{}"
assert result.stdout == "{}\n"
result = run_command("board listall MIPS -a --format json")
assert result.ok
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment