diff options
author | Alex Bennée | 2020-11-17 18:36:31 +0100 |
---|---|---|
committer | Alex Bennée | 2020-11-23 10:51:43 +0100 |
commit | 8c175c63eefe4efb8614718a9cbc72d03ce4d4a2 (patch) | |
tree | b63fb4f37b080b7e69c92b72952110288d4b2350 /tests/acceptance | |
parent | scripts/ci: clean up default args logic a little (diff) | |
download | qemu-8c175c63eefe4efb8614718a9cbc72d03ce4d4a2.tar.gz qemu-8c175c63eefe4efb8614718a9cbc72d03ce4d4a2.tar.xz 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 'tests/acceptance')
-rw-r--r-- | tests/acceptance/avocado_qemu/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/avocado_qemu/__init__.py index 4cda037187..307020be45 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -171,7 +171,8 @@ class Test(avocado.Test): self.cancel("No QEMU binary defined or found in the build tree") def _new_vm(self, *args): - vm = QEMUMachine(self.qemu_bin, sock_dir=tempfile.mkdtemp()) + sd = tempfile.mkdtemp(prefix="avo_qemu_sock_") + vm = QEMUMachine(self.qemu_bin, sock_dir=sd) if args: vm.add_args(*args) return vm |