diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2024-02-05 15:51:58 +0000 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2024-02-07 15:00:54 +0100 |
commit | 7d2faf0ce2ccc896ac56bc5ed2cdf4a55056a8bb (patch) | |
tree | 2605d280021bcce017379166328991903f1af10b /tests | |
parent | c645bac4e06bf9642cc8e339d027a5d6ec54d811 (diff) | |
download | qemu-7d2faf0ce2ccc896ac56bc5ed2cdf4a55056a8bb.zip qemu-7d2faf0ce2ccc896ac56bc5ed2cdf4a55056a8bb.tar.gz qemu-7d2faf0ce2ccc896ac56bc5ed2cdf4a55056a8bb.tar.bz2 |
iotests: give tempdir an identifying name
If something goes wrong causing the iotests not to cleanup their
temporary directory, it is useful if the dir had an identifying
name to show what is to blame.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20240205155158.1843304-1-berrange@redhat.com>
Revieved-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qemu-iotests/testenv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py index 3ff38f2..588f30a 100644 --- a/tests/qemu-iotests/testenv.py +++ b/tests/qemu-iotests/testenv.py @@ -126,7 +126,7 @@ class TestEnv(ContextManager['TestEnv']): self.tmp_sock_dir = False Path(self.sock_dir).mkdir(parents=True, exist_ok=True) except KeyError: - self.sock_dir = tempfile.mkdtemp() + self.sock_dir = tempfile.mkdtemp(prefix="qemu-iotests-") self.tmp_sock_dir = True self.sample_img_dir = os.getenv('SAMPLE_IMG_DIR', |