diff options
author | Bernd Schubert <bschubert@ddn.com> | 2024-03-20 01:14:07 +0100 |
---|---|---|
committer | Bernd Schubert <bschubert@ddn.com> | 2024-03-20 12:32:30 +0100 |
commit | 71a97226e89b790fbc76ff14ee127c7b3c242782 (patch) | |
tree | 95c91eda1f491dc03fd189d2243477d1a9257eb6 /test/util.py | |
parent | 38d40c5bc1bd2c3614214fd996d6aee1e964019a (diff) | |
download | libfuse-71a97226e89b790fbc76ff14ee127c7b3c242782.tar.gz |
Fix test failures: Create missing mount dir
Tests were failing because mount dir was missing.
Unclear to me why this became only recently an issue
(github internal - out of the sudden tests were hanging).
Diffstat (limited to 'test/util.py')
-rw-r--r-- | test/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/util.py b/test/util.py index 0a1fa93..623b031 100644 --- a/test/util.py +++ b/test/util.py @@ -151,6 +151,12 @@ def powerset(iterable): return itertools.chain.from_iterable( itertools.combinations(s, r) for r in range(len(s)+1)) +def create_tmpdir(mnt_dir): + if not os.path.exists(mnt_dir): + print("makedirs: '" + mnt_dir + "'") + os.makedirs(mnt_dir) + else: + print("mnt_dir exists: '" + mnt_dir + "'") # Use valgrind if requested if os.environ.get('TEST_WITH_VALGRIND', 'no').lower().strip() \ |