We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8197ef2 commit dd249c5Copy full SHA for dd249c5
.github/workflows/ci.yml
@@ -19,7 +19,12 @@ jobs:
19
- name: Build tests
20
run: cargo test --no-run
21
- name: Find test executable
22
- run: echo "TEST_EXECUTABLE=$(find ./target/debug/deps/ -type f -perm /111 -name 'as_root-*')" >> $GITHUB_ENV
+ run: |
23
+ if [[ "$(uname)" == "Darwin" ]]; then
24
+ echo "TEST_EXECUTABLE=$(find ./target/debug/deps/ -type f -perm +111 -name 'as_root-*')" >> $GITHUB_ENV
25
+ else
26
+ echo "TEST_EXECUTABLE=$(find ./target/debug/deps/ -type f -executable -name 'as_root-*')" >> $GITHUB_ENV
27
+ fi
28
- name: Run root-required test user_and_group_does_not_exist
29
run: sudo -E -- "$TEST_EXECUTABLE --show-output --ignored --test user_and_group_does_not_exist"
30
env:
0 commit comments