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

old-commit-hash: cefbd6734e
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 775ed1428f
commit 3e064c4dd5
  1. 7
      selfdrive/manager/build.py

@ -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

Loading…
Cancel
Save