build.py: don't hang on text window in CI (#21335)

This commit is contained in:
Adeeb Shihadeh
2021-06-18 15:37:53 -07:00
committed by GitHub
parent 85f134da6a
commit cefbd6734e
+4 -3
View File
@@ -76,9 +76,10 @@ def build(spinner, dirty=False):
# Show TextWindow
spinner.close()
error_s = "\n \n".join(["\n".join(textwrap.wrap(e, 65)) for e in errors])
with TextWindow("openpilot failed to build\n \n" + error_s) as t:
t.wait_for_exit()
if not os.getenv("CI"):
error_s = "\n \n".join(["\n".join(textwrap.wrap(e, 65)) for e in errors])
with TextWindow("openpilot failed to build\n \n" + error_s) as t:
t.wait_for_exit()
exit(1)
else:
break