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

pull/21223/head^2
Adeeb Shihadeh 4 years ago committed by GitHub
parent 85f134da6a
commit cefbd6734e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      selfdrive/manager/build.py

@ -76,9 +76,10 @@ def build(spinner, dirty=False):
# Show TextWindow # Show TextWindow
spinner.close() spinner.close()
error_s = "\n \n".join(["\n".join(textwrap.wrap(e, 65)) for e in errors]) if not os.getenv("CI"):
with TextWindow("openpilot failed to build\n \n" + error_s) as t: error_s = "\n \n".join(["\n".join(textwrap.wrap(e, 65)) for e in errors])
t.wait_for_exit() with TextWindow("openpilot failed to build\n \n" + error_s) as t:
t.wait_for_exit()
exit(1) exit(1)
else: else:
break break

Loading…
Cancel
Save