From dad86c24e650ab7437c639e24abb38af50a3a8c7 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Fri, 30 Oct 2026 08:37:23 +0100 Subject: [PATCH] test(install): guard Unix mode checks on Windows Git Bash does not expose exact Unix permission bits. Keep the content and executable checks on every platform, and run Windows acceptance shards before merging. Refs #1406 --- .github/workflows/tests.yml | 1 - tests/acceptance/install_test.sh | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3d03a77fa..2fde270b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -208,7 +208,6 @@ jobs: windows-acceptance: name: "Windows - acceptance" - if: github.event_name == 'push' timeout-minutes: 10 runs-on: windows-latest strategy: diff --git a/tests/acceptance/install_test.sh b/tests/acceptance/install_test.sh index 5fc751576..6fff9f46b 100644 --- a/tests/acceptance/install_test.sh +++ b/tests/acceptance/install_test.sh @@ -251,7 +251,9 @@ SH assert_successful_code "" "" "$status" assert_same "$(printf '#!/bin/sh\nexit 0')" "$(cat destination/bashunit)" assert_is_file_executable destination/bashunit - assert_not_empty "$(find destination/bashunit -perm 0744 -print)" + if ! bashunit::check_os::is_windows; then + assert_not_empty "$(find destination/bashunit -perm 0744 -print)" + fi else assert_general_error "" "" "$status" assert_same 'previous binary' "$(cat destination/bashunit)"