File tree Expand file tree Collapse file tree
.expeditor/scripts/end_to_end Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ source .expeditor/scripts/end_to_end/setup_environment_darwin.sh "$channel"
1212
1313pwsh_path=" $( command -v pwsh) "
1414
15- # Clean up the writable APFS volume mounted at /hab when done
16- trap ' sudo -E bash -c "source .expeditor/scripts/shared.sh && HAB_VOLUME_DEVICE=$HAB_VOLUME_DEVICE teardown_hab_root_macos_pipeline"' EXIT
17-
1815if [ -n " $test_name " ]; then
1916 sudo -E " $pwsh_path " .expeditor/scripts/end_to_end/run_e2e_test_core.ps1 " $test_name "
2017else
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ HAB_VOLUME_DEVICE=$(cat "$HAB_VOLUME_DEVICE_FILE")
2929rm -f " $HAB_VOLUME_DEVICE_FILE "
3030export HAB_VOLUME_DEVICE
3131
32+ # Clean up the writable APFS volume mounted at /hab when done
33+ trap ' sudo -E bash -c "source .expeditor/scripts/shared.sh && \
34+ HAB_VOLUME_DEVICE=$HAB_VOLUME_DEVICE \
35+ teardown_hab_root_macos_pipeline"' ERR EXIT
36+
3237# Note: We should always have a `hab` binary installed in our CI
3338# Anka VMs.
3439
You can’t perform that action at this time.
0 commit comments