test/run: make relative OSBUILD_TEST_STORE consistent

Make it relative to the directory invoking ./run, rather than passing it along.
This commit is contained in:
Tom Gundersen 2019-12-09 19:40:25 +01:00 committed by Lars Karlitski
parent 3adcac0123
commit 8c68018d62

View file

@ -53,7 +53,7 @@ def netns():
def osbuild_test_store():
store = os.getenv("OSBUILD_TEST_STORE")
if store:
yield store
yield os.path.abspath(store)
else:
with tempfile.TemporaryDirectory(dir="/var/tmp", prefix="osbuild-composer-test-") as store:
yield store