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

old-commit-hash: cefbd6734eecaada43d306f114aebfeba0c67369
This commit is contained in:
Adeeb Shihadeh
2021-06-18 15:37:53 -07:00
committed by GitHub
parent 775ed1428f
commit 3e064c4dd5
+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