Skip to content

Commit fa3fefb

Browse files
committed
fix(build): Remove trailing blank lines from output of run-tests.js
1 parent b0cc073 commit fa3fefb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/scripts/run-tests.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ testrun.stdout.on('data', function(chunks) {
9393

9494
chunks = leftover + chunks;
9595
chunks = chunks.replace(/\(lldb\)\s/g, '');
96-
var lines = chunks.split('\n');
96+
var lines = chunks.split(/\r?\n/);
9797
for(var i = 0; i < lines.length - 1; i++) {
9898
var line = lines[i];
9999

@@ -106,7 +106,8 @@ testrun.stdout.on('data', function(chunks) {
106106
// if line.indexOf('App Start') reset the timeout function
107107
var index = line.indexOf(term);
108108
if (index <= 0) {
109-
process.stdout.write(line + '\n');
109+
if (line)
110+
process.stdout.write(line + '\n');
110111
} else {
111112
if (line.indexOf("CONSOLE LOG") !== 0) {
112113
// Each line is logged by the debugger twice (to console and to logs)

0 commit comments

Comments
 (0)