remove the list from 'mc stat' from testing via '--no-list' (#20468)

avoid 'listing' as it may get incorrect results for
these tests, we are only interested in 'mc stat' as
in HEAD object here.
This commit is contained in:
Harshavardhana
2024-09-24 01:03:58 -07:00
committed by GitHub
parent 6a6ee46d76
commit 0c53d86017
8 changed files with 77 additions and 73 deletions
@@ -62,7 +62,7 @@ while true; do
fi
echo "Hello World" | ./mc pipe sitea/bucket/obj$loop_count
./mc rm sitea/bucket/obj$loop_count
RESULT=$({ ./mc stat sitea/bucket/obj$loop_count; } 2>&1)
RESULT=$({ ./mc stat --no-list sitea/bucket/obj$loop_count; } 2>&1)
if [[ ${RESULT} != *"Object does not exist"* ]]; then
echo "BUG: stat should fail. succeeded."
exit_1