Skip to content

Commit 510fd69

Browse files
committed
updated test_dockerhub_search.sh
1 parent 67c680b commit 510fd69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_dockerhub_search.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ check './dockerhub_search.py hadoop-dev | grep harisekhon/hadoop-dev' "DockerHub
3636
# causes IOError: [Errno 32] Broken pipe
3737
#unset PYTHONUNBUFFERED
3838
# shellcheck disable=SC2016
39-
check '[ $(./dockerhub_search.py -q harisekhon | head -n 40 | tee /dev/stderr | grep "^harisekhon/[A-Za-z0-9_-]*$" | wc -l) = 40 ]' "DockerHub Search quiet mode for shell scripting"
39+
check '[ "$(./dockerhub_search.py -q harisekhon | head -n 40 | tee /dev/stderr | grep -c "^harisekhon/[A-Za-z0-9_-]*$")" = 40 ]' "DockerHub Search quiet mode for shell scripting"
4040

4141
echo
4242
echo

0 commit comments

Comments
 (0)