# HG changeset patch # User Alain Mazy # Date 1748358469 -7200 # Node ID f094845ac9a24d08c2397b860519be32449dba92 # Parent cc4f3fbcd0750cbc32dec4cb60316bcf33e1164e fix diff -r cc4f3fbcd075 -r f094845ac9a2 NewTests/helpers.py --- a/NewTests/helpers.py Tue May 27 16:29:49 2025 +0200 +++ b/NewTests/helpers.py Tue May 27 17:07:49 2025 +0200 @@ -185,6 +185,9 @@ # shutil.rmtree(os.path.join(root, d)) # shutil.rmtree(storage_path, ignore_errors=True) else: + # create the directory with user ownership before docker creates it + pathlib.Path(storage_path).mkdir(parents=True, exist_ok=True) + # clear the directory (but you need to be root from the container !) cmd = [ "docker", "run", "--rm", @@ -195,9 +198,6 @@ ] subprocess.run(cmd, check=True) - # create the directory with user ownership - pathlib.Path(storage_path).mkdir(parents=True, exist_ok=True) - @classmethod def is_storage_empty(cls, storage_name: str):