Tests: fixed tests to run as privileged user.

This commit is contained in:
Andrei Zeliankou
2022-12-09 14:17:49 +00:00
parent e70653c766
commit 55b9a5307d
2 changed files with 15 additions and 8 deletions

View File

@@ -12,9 +12,15 @@ def public_dir(path):
for root, dirs, files in os.walk(path):
for d in dirs:
os.chmod(os.path.join(root, d), 0o777)
try:
os.chmod(os.path.join(root, d), 0o777)
except FileNotFoundError:
pass
for f in files:
os.chmod(os.path.join(root, f), 0o777)
try:
os.chmod(os.path.join(root, f), 0o777)
except FileNotFoundError:
pass
def waitforfiles(*files, timeout=50):