Commit 6bc8b637 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

test: increase permissions for the "test" directory (v2)

Restoring mount namespaces requires to create temporary directories
in a test root.

When tests execute in a new userns, they have non-zero gid and uid,
so we need to grant permissions for them.

v2: add +rx as well

Reported-by: Mr Jenkins
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 32f58742
......@@ -471,6 +471,9 @@ start_test()
if [ -z "$USERNS" ]; then
unset ZDTM_USERNS
else
# we need to be able to create a temporary directory in a test
# root for restoring mount namespaces
chmod go+wxr .
export ZDTM_USERNS=1
fi
......
Markdown is supported
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