Skip to content

Commit

Permalink
Test error catching
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeliton committed Mar 5, 2024
1 parent 2d02d25 commit eeaa74d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/docker_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def build(node: Node) -> Tuple[bool, str]:

# Error detection. The docker client is not throwing errors if the build fails.
# These errors are caught by our tests unless we scan these lines manually.
# DEBUG
print("TESTESTEST: " + line)
if 'errorDetail' in line:
logger.error(f"Docker returned build error during build of {node.image_name},\n {build_e}")
return False, report
Expand Down

0 comments on commit eeaa74d

Please sign in to comment.