Skip to content

Commit

Permalink
natlab: Raise exception if binary copy to VM fails
Browse files Browse the repository at this point in the history
  • Loading branch information
lcruz99 committed Mar 7, 2025
1 parent f447189 commit 2c1857b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nat-lab/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,17 @@ async def _copy_vm_binaries(tag: ConnectionTag):
):
pass
except OSError as e:
if os.environ.get("GITLAB_CI"):
raise e
log.error(e)
raise e
elif tag is ConnectionTag.MAC_VM:
try:
async with mac_vm_util.new_connection(
copy_binaries=True, reenable_nat=True
):
pass
except OSError as e:
if os.environ.get("GITLAB_CI"):
raise e
log.error(e)
raise e


async def _copy_vm_binaries_if_needed(items):
Expand Down

0 comments on commit 2c1857b

Please sign in to comment.