Rev 9334 | Rev 9369 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9334 | Rev 9342 | ||
---|---|---|---|
Line 87... | Line 87... | ||
87 | else: |
87 | else: |
88 | return "." # Just a filename, let's return current folder |
88 | return "." # Just a filename, let's return current folder |
Line 89... | Line 89... | ||
89 | 89 | ||
90 | def run_qemu(root_dir, test_dir, debug_log): |
90 | def run_qemu(root_dir, test_dir, debug_log): |
91 | # Make local copy of IMG, so we will be able to run the test in parallel |
91 | # Make local copy of IMG, so we will be able to run the test in parallel |
- | 92 | if os.path.exists(f"{test_dir}/kolibri_test.img"): # If previous test run interrupted the file may be busy |
|
92 | os.remove(f"{test_dir}/kolibri_test.img") # If previous test run interrupted the file may be busy |
93 | os.remove(f"{test_dir}/kolibri_test.img") |
93 | shutil.copyfile(f"{root_dir}/kolibri_test.img", f"{test_dir}/kolibri_test.img") |
94 | shutil.copyfile(f"{root_dir}/kolibri_test.img", f"{test_dir}/kolibri_test.img") |
94 | qemu_command = f"qemu-system-i386" |
95 | qemu_command = f"qemu-system-i386" |
95 | flags = "" |
96 | flags = "" |
96 | flags += "-nographic " # Makes it faster |
97 | flags += "-nographic " # Makes it faster |