summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2024-10-17 08:45:55 +0200
committerEmīls <emils@mullvad.net>2024-10-18 18:25:29 +0200
commit1dadbb1ec373bda3937cf20305e652ae92969f52 (patch)
treeb9b99bf3c8449eda5a199164bb7bf9df173a3212 /.github
parent12dd4f4e2214070edd384c3a79d63c4eec4626dd (diff)
downloadmullvadvpn-1dadbb1ec373bda3937cf20305e652ae92969f52.tar.xz
mullvadvpn-1dadbb1ec373bda3937cf20305e652ae92969f52.zip
Force a sync of the whole system before reading config
Diffstat (limited to '.github')
-rw-r--r--.github/actions/run-ios-e2e-tests/action.yml6
-rw-r--r--.github/workflows/ios-end-to-end-tests.yml3
2 files changed, 9 insertions, 0 deletions
diff --git a/.github/actions/run-ios-e2e-tests/action.yml b/.github/actions/run-ios-e2e-tests/action.yml
index 4d789a6c47..9e9b077c26 100644
--- a/.github/actions/run-ios-e2e-tests/action.yml
+++ b/.github/actions/run-ios-e2e-tests/action.yml
@@ -19,6 +19,9 @@ runs:
# Set up a unique output directory
- name: Set up outputs directory
run: |
+ # Forcing the filesystem buffers to be flushed to ensure the
+ # directory tree is updated
+ sync
if [ -n "$TEST_NAME" ]; then
# Strip slashes to avoid creating subdirectories
test_name_sanitized=$(printf "$TEST_NAME" | sed 's/\//_/g')
@@ -45,6 +48,9 @@ runs:
- name: Run end-to-end-tests
run: |
+ # Forcing the filesystem buffers to be flushed to ensure the
+ # directory tree is updated
+ sync
if [ -n "$TEST_NAME" ]; then
TEST_NAME_ARGUMENT=" -only-testing $TEST_NAME"
else
diff --git a/.github/workflows/ios-end-to-end-tests.yml b/.github/workflows/ios-end-to-end-tests.yml
index 60e63e3bf7..ea80d5d0b3 100644
--- a/.github/workflows/ios-end-to-end-tests.yml
+++ b/.github/workflows/ios-end-to-end-tests.yml
@@ -47,6 +47,9 @@ jobs:
if [ -n "${{ inputs.arg_tests_json_key }}" ]; then
# JSON key supplied by another workflow calling this reusable workflow
echo "Using calling workflow supplied test suites JSON key: ${{ inputs.arg_tests_json_key }}"
+ # Forcing the filesystem buffers to be flushed to ensure the
+ # directory tree is updated
+ sync
test_suites_json=$(jq -r --compact-output '.tests."${{ inputs.arg_tests_json_key }}"' tests.json)
echo "test_suites_json=$test_suites_json" >> $GITHUB_ENV
elif [ -n "${{ inputs.user_supplied_test_name }}" ]; then