Publish curated Unraid-AppOps-Gateway source from 965c416ebf041123a61bc54b20bde0ad09b9ccc3
This commit is contained in:
1 parent
1188c86539
commit
ef95b500d8
6 files changed
+23
-16
No files matched your search
@@ -3,6 +3,7 @@ from __future__ import annotations
|
||||
import hashlib
|
||||
import importlib.util
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import tempfile
|
||||
@@ -446,7 +447,10 @@ def effects_env(tmp_path):
|
||||
def runtime_readable_scan_root():
|
||||
# The pytest tmp_path parent is mode 0700 on Linux, so runtime UID 10001
|
||||
# cannot traverse it even when the leaf scan directories are mode 0755.
|
||||
with tempfile.TemporaryDirectory(prefix="repopulse-scan-") as directory:
|
||||
# A private TMPDIR must not override the public Linux parent needed by UID 10001.
|
||||
with tempfile.TemporaryDirectory(
|
||||
prefix="repopulse-scan-", dir="/tmp" if os.name == "posix" else None,
|
||||
) as directory:
|
||||
root = Path(directory)
|
||||
root.chmod(0o755)
|
||||
yield root
|
||||
|
||||
Reference in new issue
Block a user