Skip to content

Commit 28ea6ef

Browse files
andy5995claude
andcommitted
fix: revert find to ls in test_basic.sh, disable SC2012
The OpenSUSE Tumbleweed CI container does not have 'find' in PATH. Revert to the original ls -A approach and suppress SC2012 since filenames in the waste folder are controlled and the count is reliable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fe3beae commit 28ea6ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_basic.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ printf "\n\n == Show contents of the files and info directories\n"
5959
test -n "$(ls -A "$PRIMARY_WASTE_DIR"/files)"
6060
test -n "$(ls -A "$PRIMARY_WASTE_DIR"/info)"
6161

62-
output="$(find "$PRIMARY_WASTE_DIR"/files -maxdepth 1 -mindepth 1 | wc -l | tr -d ' ')"
62+
# shellcheck disable=SC2012
63+
output="$(ls -A "$PRIMARY_WASTE_DIR"/files | wc -l | sed 's/ //g')"
6364
test "$output" = "6"
6465

6566
echo "$SEPARATOR"

0 commit comments

Comments
 (0)