Skip to content

Commit

Permalink
systemtest: check read permission instead of user
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and arogge committed Mar 2, 2023
1 parent 3ce79fd commit e4bc7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemtests/tests/testfind/testrunner
Expand Up @@ -40,7 +40,7 @@ expect_grep "Number of files examined: 19" \
"$wildcard_log" \
"Number of files is incorrect."

if [ $(whoami) != "root" ]; then
if [ ! -r "$unopenable_dir" ]; then
expect_grep "\"$unopenable_dir\": ERR=Permission denied" \
"$error_log" \
"Error on faulty directory not detected."
Expand Down

0 comments on commit e4bc7a6

Please sign in to comment.