Skip to content

Commit 157ac15

Browse files
committed
Ensure print current sketch output only.
When skipping a sketch, would previously show the build output from the prior sketch. This may also have caused a build error if the first sketch was skipped (unverified).
1 parent 6031e4f commit 157ac15

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tools/build_all.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ def build_examples(variant):
103103

104104
print((build_format + '| {:5.2f}s |').format(sketch.split(os.path.sep)[1], os.path.basename(sketch), success, build_duration))
105105

106-
if build_result.returncode != 0:
107-
print(build_result.stdout.decode("utf-8"))
108-
if (build_result.stderr):
109-
print(build_result.stderr.decode("utf-8"))
110-
111-
if len(warningLines) != 0:
112-
for line in warningLines:
113-
print(line)
106+
if success != "skipped":
107+
if build_result.returncode != 0:
108+
print(build_result.stdout.decode("utf-8"))
109+
if (build_result.stderr):
110+
print(build_result.stderr.decode("utf-8"))
111+
if len(warningLines) != 0:
112+
for line in warningLines:
113+
print(line)
114114

115115
if travis:
116116
print('travis_fold:end:build-{}\\r'.format(sketch))

0 commit comments

Comments
 (0)