tools: flush print in test case generator

When not flushed, the line often doesn't get printed until after the job
is done. Printing it before the job is useful for knowing the progress
of a multi-job run.
This commit is contained in:
Achilleas Koutsou 2021-07-21 11:52:41 +02:00 committed by Ondřej Budai
parent 347fcf74a6
commit 67c5e099ed

View file

@ -89,7 +89,7 @@ class TestCaseGenerator:
def generate_test_case(test_type, distro, arch, output_format, test_case_request, keep_image_info, store, output):
print(f"generating test case for {output_format}")
print(f"generating test case for {output_format}", flush=True)
generator = TestCaseGenerator(test_case_request)
test_case = generator.get_test_case(keep_image_info, store)
name = distro.replace("-", "_") + "-" + arch + "-" + output_format.replace("-", "_") + "-" + test_type + ".json"