From 99d1d4e5d0b94974042f2c5449f19d2a020de0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Tue, 22 Jun 2021 14:28:29 +0200 Subject: [PATCH] tools/deploy-qemu: use default temp dir location MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the temporary directory was created in the script dir. It just imo created unnecessary and confusing files in my git checkout. Let's just use the default temporary directory because we don't really have special needs for it. Signed-off-by: Ondřej Budai --- tools/deploy-qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deploy-qemu b/tools/deploy-qemu index 73ea8dc14..6557a977a 100755 --- a/tools/deploy-qemu +++ b/tools/deploy-qemu @@ -33,7 +33,7 @@ userdata = sys.argv[2] qemu_extra_args = os.getenv("QEMU_EXTRA_ARGS") qemu_extra_args = qemu_extra_args.split(' ') if qemu_extra_args is not None else [] -with tempfile.TemporaryDirectory(prefix="qemu-tmp-", dir=script_dir) as workdir: +with tempfile.TemporaryDirectory(prefix="qemu-tmp-") as workdir: os.mkdir(os.path.join(workdir, "cidata")) if os.path.isdir(userdata):