Skip to content

Commit

Permalink
shell test sets quarantine flag on a binary
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed Sep 25, 2024
1 parent 7ff3f8d commit 8b86948
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions shell_test_create_test_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ touch $BASE_DIR/misc/test.txt

touch $BASE_DIR/junk1
touch $BASE_DIR/junk2

cp -r /System/Applications/Utilities/Terminal.app $BASE_DIR
xattr -r -w com.apple.quarantine "0081;5f8e2361;Safari;1234ABC-5678-DEF0" $BASE_DIR/Terminal.app
6 changes: 3 additions & 3 deletions shell_test_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -e

./.venv/bin/directory_cleaner -c configs/taskcluster_unix.toml -v --remove-empty-directories /tmp/test-directory

set +x
# set +x

echo "Should say: "
echo " Cleaned directory '/tmp/test-directory'. Removed 4 files and 1 directories."
# echo "Should say: "
# echo " Cleaned directory '/tmp/test-directory'. Removed 4 files and 1 directories."

0 comments on commit 8b86948

Please sign in to comment.