Skip to content

Commit

Permalink
added extra explanation for future me
Browse files Browse the repository at this point in the history
  • Loading branch information
terhorstd committed Jan 22, 2025
1 parent f7e9464 commit 4ea5f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite/do_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ list_files() {
# list_files <somedir> <some_pattern> | while read -r test_name; do ... done
if test "${INFO_OS}" = "Darwin"; then
# ref https://stackoverflow.com/a/752893
# Note that on GNU systems an additional '-r' would be needed for
# xargs, which is not available here.
find "${1}" -maxdepth 1 -name "${2}" -print0 | xargs -0 -n1 basename
else
find "${1}" -maxdepth 1 -name "${2}" -printf '%f\n'
Expand Down

0 comments on commit 4ea5f00

Please sign in to comment.