[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 14/31] tests/functional: switch over to using self.socket_dir(
From: |
Daniel P . Berrangé |
Subject: |
[PATCH v2 14/31] tests/functional: switch over to using self.socket_dir(...) |
Date: |
Wed, 11 Dec 2024 17:26:30 +0000 |
This removes direct creation of temporary dirs
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
tests/functional/test_arm_aspeed.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/functional/test_arm_aspeed.py
b/tests/functional/test_arm_aspeed.py
index 9561129c51..5bd31e43ee 100755
--- a/tests/functional/test_arm_aspeed.py
+++ b/tests/functional/test_arm_aspeed.py
@@ -9,7 +9,6 @@
import os
import time
import subprocess
-import tempfile
from qemu_test import LinuxKernelTest, Asset
from qemu_test import exec_command_and_wait_for_pattern
@@ -226,7 +225,7 @@ def test_arm_ast2600_evb_buildroot_tpm(self):
tpmstate_dir = self.scratch_file('swtpmstate')
os.mkdir(tpmstate_dir)
- socket_dir = tempfile.TemporaryDirectory(prefix="qemu_")
+ socket_dir = self.socket_dir()
socket = os.path.join(socket_dir.name, 'swtpm-socket')
# We must put the TPM state dir in /tmp/, not the build dir,
--
2.46.0
- [PATCH v2 07/31] tests/functional: switch to new test skip decorators, (continued)
- [PATCH v2 07/31] tests/functional: switch to new test skip decorators, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 09/31] tests/functional: add helpers for building file paths, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 08/31] tests/functional: drop 'has_cmd' and 'has_cmds' helpers, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 10/31] tests/functional: switch over to using self.log_file(...), Daniel P . Berrangé, 2024/12/11
- [PATCH v2 11/31] tests/functional: switch over to using self.build_file(...), Daniel P . Berrangé, 2024/12/11
- [PATCH v2 12/31] tests/functional: switch over to using self.data_file(...), Daniel P . Berrangé, 2024/12/11
- [PATCH v2 14/31] tests/functional: switch over to using self.socket_dir(...),
Daniel P . Berrangé <=
- [PATCH v2 13/31] tests/functional: switch over to using self.scratch_file(), Daniel P . Berrangé, 2024/12/11
- [PATCH v2 15/31] tests/functional: remove redundant 'rmtree' call, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 16/31] tests/functional: move archive handling into new archive.py file, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 17/31] tests/functional: move uncompress handling into new uncompress.py file, Daniel P . Berrangé, 2024/12/11
- [PATCH v2 18/31] tests/functional: add common zip_extract helper, Daniel P . Berrangé, 2024/12/11