[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH RFC 3/6] iotests: get rid of '..' in path environment output
From: |
John Snow |
Subject: |
[PATCH RFC 3/6] iotests: get rid of '..' in path environment output |
Date: |
Tue, 20 Jun 2023 20:21:18 -0400 |
Resolve the build_root before we append more items onto it so that the
environment output is more concise with less parent directory confetti
in it.
Signed-off-by: John Snow <jsnow@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 9a37ad9152..e67ebd254b 100644
--- a/tests/qemu-iotests/testenv.py
+++ b/tests/qemu-iotests/testenv.py
@@ -216,7 +216,7 @@ def __init__(self, source_dir: str, build_dir: str,
self.source_iotests = source_dir
self.build_iotests = build_dir
- self.build_root = os.path.join(self.build_iotests, '..', '..')
+ self.build_root = Path(self.build_iotests).parent.parent
self.init_directories()
--
2.40.1
- [PATCH RFC 0/6] Switch iotests to pyvenv, John Snow, 2023/06/20
- [PATCH RFC 2/6] build, tests: Add qemu in-tree packages to pyvenv at configure time., John Snow, 2023/06/20
- [PATCH RFC 4/6] iotests: use the correct python to run linters, John Snow, 2023/06/20
- [PATCH RFC 6/6] iotests: don't add qemu.git/python to PYTHONPATH, John Snow, 2023/06/20
- [PATCH RFC 5/6] iotests: use pyvenv/bin/python3 to launch child test processes, John Snow, 2023/06/20
- [PATCH RFC 3/6] iotests: get rid of '..' in path environment output,
John Snow <=
- [PATCH RFC 1/6] experiment: add mkvenv install, John Snow, 2023/06/20
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, Paolo Bonzini, 2023/06/21
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, Paolo Bonzini, 2023/06/22
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, John Snow, 2023/06/22
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, Paolo Bonzini, 2023/06/22
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, John Snow, 2023/06/22
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, Paolo Bonzini, 2023/06/22
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, John Snow, 2023/06/22
- Re: [PATCH RFC 0/6] Switch iotests to pyvenv, Paolo Bonzini, 2023/06/22