Skip to content
Snippets Groups Projects
Commit 62eb3bc3 authored by Philip Withnall's avatar Philip Withnall
Browse files

tests: Fix skipping mkdir-with-parents-permission test


If the user has `CAP_DAC_OVERRIDE` or similar (for example, if running
the tests as root), the `mkdir-with-parents-permission` test is skipped.

The check for `CAP_DAC_OVERRIDE` was by creating a subdirectory of the
test directory. That subdirectory, however, was never removed, which
caused a ‘directory not empty’ error when trying to delete the test
directory.

Fix that by correctly deleting the subdirectory if skipping the test.

Signed-off-by: default avatarPhilip Withnall <withnall@endlessm.com>
parent 0698d561
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment