Skip to content

Commit 511147b

Browse files
committed
DEBUG: test chflags
1 parent f11dda1 commit 511147b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,6 @@ jobs:
107107
runs-on: macos-latest
108108
steps:
109109
- uses: actions/checkout@v4
110-
- run: env PYTESTFLAGS="--verbose -p no:cacheprovider --color=yes" test/macos-script.sh
110+
with:
111+
persist-credentials: false
112+
- run: env PYTESTFLAGS="--verbose -p no:cacheprovider --color=yes -k TestCompLoad" test/macos-script.sh

test/t/unit/test_unit_load.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import sys
23

34
import pytest
45

@@ -34,7 +35,13 @@ def fixture_dir(self, request, bash):
3435
bash, "ln -sf ../prefix1/sbin/cmd2 %s/bin/cmd2" % tmpdir
3536
)
3637
yield str(tmpdir)
37-
assert_bash_exec(bash, "rm -rf %s/*" % tmpdir)
38+
if sys.platform == "darwin":
39+
ls_out = assert_bash_exec(
40+
bash, "ls -dlo %s/" % tmpdir, want_output=True
41+
)
42+
print(ls_out)
43+
assert_bash_exec(bash, "chflags -R nouchg %s/*" % tmpdir)
44+
assert_bash_exec(bash, "sudo rm -rf %s/*" % tmpdir)
3845

3946
def test_userdir_1(self, bash, fixture_dir):
4047
with bash_env_saved(bash) as bash_env:

0 commit comments

Comments
 (0)