Skip to content

Commit 348127f

Browse files
committed
test: Drop get_temp_dir() usage from image-prepare
We are going to eliminate `$TEST_DATA`, it currently influences too many things which really don't belong together. There is little reason to put the built rpms into some user-controlled path -- in particular, we *don't* want to put them into some persistent and possibly remote storage if `$TEST_DATA` points to a container volume. get_temp_dir() is too unspecific to be used as public API, so let's eliminate it. This is the only consumer outside of bots itself. Cherry-picked from master commit acd4f87.
1 parent 3adf7e8 commit 348127f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/image-prepare

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def main():
6969
sys.stderr.write("image-prepare: use of --install-only with --build-only is incompatible\n")
7070
return 2
7171

72-
# Default to putting build output in the tmp/build-results directory
73-
results = os.path.join(testvm.get_temp_dir(), "build-results")
72+
results = os.path.abspath("tmp/build-results")
7473

7574
# Make sure any images are downloaded
7675
try:

0 commit comments

Comments
 (0)