diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2020-11-17 17:36:31 +0000 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2020-11-23 09:51:43 +0000 |
| commit | 8c175c63eefe4efb8614718a9cbc72d03ce4d4a2 (patch) | |
| tree | b63fb4f37b080b7e69c92b72952110288d4b2350 /python/qemu/machine.py | |
| parent | e4b937d3c4ddb960002a3aa9b0f209eb63c8b710 (diff) | |
| download | focaccia-qemu-8c175c63eefe4efb8614718a9cbc72d03ce4d4a2.tar.gz focaccia-qemu-8c175c63eefe4efb8614718a9cbc72d03ce4d4a2.zip | |
tests: add prefixes to the bare mkdtemp calls
The first step to debug a thing is to know what created the thing in the first place. Add some prefixes so random tmpdir's have something grep in the code. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20201117173635.29101-3-alex.bennee@linaro.org>
Diffstat (limited to 'python/qemu/machine.py')
| -rw-r--r-- | python/qemu/machine.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qemu/machine.py b/python/qemu/machine.py index 6420f01bed..64d966aeeb 100644 --- a/python/qemu/machine.py +++ b/python/qemu/machine.py @@ -303,7 +303,8 @@ class QEMUMachine: return args def _pre_launch(self) -> None: - self._temp_dir = tempfile.mkdtemp(dir=self._test_dir) + self._temp_dir = tempfile.mkdtemp(prefix="qemu-machine-", + dir=self._test_dir) self._qemu_log_path = os.path.join(self._temp_dir, self._name + ".log") self._qemu_log_file = open(self._qemu_log_path, 'wb') |