[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/5] qemu-iotests: fix case of SOCK_DIR already in the environ
From: |
Paolo Bonzini |
Subject: |
[PATCH v2 5/5] qemu-iotests: fix case of SOCK_DIR already in the environment |
Date: |
Tue, 23 Mar 2021 19:19:27 +0100 |
Due to a typo, in this case the SOCK_DIR was not being created.
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
tests/qemu-iotests/testenv.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py
index 6767eeeb25..169268f61a 100644
--- a/tests/qemu-iotests/testenv.py
+++ b/tests/qemu-iotests/testenv.py
@@ -120,7 +120,7 @@ def init_directories(self) -> None:
try:
self.sock_dir = os.environ['SOCK_DIR']
self.tmp_sock_dir = False
- Path(self.test_dir).mkdir(parents=True, exist_ok=True)
+ Path(self.sock_dir).mkdir(parents=True, exist_ok=True)
except KeyError:
self.sock_dir = tempfile.mkdtemp()
self.tmp_sock_dir = True
--
2.30.1
[PATCH v2 5/5] qemu-iotests: fix case of SOCK_DIR already in the environment,
Paolo Bonzini <=
[PATCH v2 1/5] qemu-iotests: do not buffer the test output, Paolo Bonzini, 2021/03/23
[PATCH v2 3/5] qemu-iotests: move command line and environment handling from TestRunner to TestEnv, Paolo Bonzini, 2021/03/23
Re: [PATCH v2 0/5] qemu-iotests: quality of life improvements, Emanuele Giuseppe Esposito, 2021/03/24
Re: [PATCH v2 0/5] qemu-iotests: quality of life improvements, Max Reitz, 2021/03/25
Re: [PATCH v2 0/5] qemu-iotests: quality of life improvements, Max Reitz, 2021/03/26