From 69fca329d13f70a5c27b45b62e8506b5edb639d9 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Sat, 27 Nov 2021 10:54:09 +0000 Subject: [PATCH] [KERNEL][TEST] Make qemu tests more robust git-svn-id: svn://kolibrios.org@9334 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/test/common/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/test/common/__init__.py b/kernel/trunk/test/common/__init__.py index 702fb016bc..004c86062c 100644 --- a/kernel/trunk/test/common/__init__.py +++ b/kernel/trunk/test/common/__init__.py @@ -88,7 +88,8 @@ def get_file_directory(path): return "." # Just a filename, let's return current folder def run_qemu(root_dir, test_dir, debug_log): - # Copy IMG to make local copy, so we will be able to run the test in parallel + # Make local copy of IMG, so we will be able to run the test in parallel + os.remove(f"{test_dir}/kolibri_test.img") # If previous test run interrupted the file may be busy shutil.copyfile(f"{root_dir}/kolibri_test.img", f"{test_dir}/kolibri_test.img") qemu_command = f"qemu-system-i386" flags = ""