Skip to content

Commit

Permalink
iotests: get rid of '..' in path environment output
Browse files Browse the repository at this point in the history
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>
Message-ID: <20230621002121.1609612-4-jsnow@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
jnsnow authored and bonzini committed Oct 17, 2023
1 parent 8004857 commit 9444e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/qemu-iotests/testenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 9444e5f

Please sign in to comment.