Tiny add flush in the suite partition status print. (#15719)
This commit is contained in:
+14
-13
@@ -126,26 +126,27 @@ def pretty_print_tests(
|
|||||||
|
|
||||||
headers = ["Hardware", "Suite", "Nightly", "Partition"]
|
headers = ["Hardware", "Suite", "Nightly", "Partition"]
|
||||||
rows = [[hw.name, suite, str(nightly), partition_info]]
|
rows = [[hw.name, suite, str(nightly), partition_info]]
|
||||||
msg = tabulate.tabulate(rows, headers=headers, tablefmt="psql")
|
msg = tabulate.tabulate(rows, headers=headers, tablefmt="psql") + "\n"
|
||||||
print(msg + "\n")
|
|
||||||
|
|
||||||
if skipped_tests:
|
if skipped_tests:
|
||||||
print(f"⚠️ Skipped {len(skipped_tests)} test(s):")
|
msg += f"⚠️ Skipped {len(skipped_tests)} test(s):\n"
|
||||||
for t in skipped_tests:
|
for t in skipped_tests:
|
||||||
reason = t.disabled or "disabled"
|
reason = t.disabled or "disabled"
|
||||||
print(f" - {t.filename} (reason: {reason})")
|
msg += f" - {t.filename} (reason: {reason})\n"
|
||||||
|
msg += "\n"
|
||||||
print()
|
|
||||||
|
|
||||||
if len(ci_tests) == 0:
|
if len(ci_tests) == 0:
|
||||||
print(f"No tests found for hw={hw.name}, suite={suite}, nightly={nightly}")
|
msg += f"No tests found for hw={hw.name}, suite={suite}, nightly={nightly}\n"
|
||||||
print("This is expected during incremental migration. Skipping.")
|
msg += "This is expected during incremental migration. Skipping.\n"
|
||||||
return
|
else:
|
||||||
|
total_est_time = sum(t.est_time for t in ci_tests)
|
||||||
|
msg += (
|
||||||
|
f"✅ Enabled {len(ci_tests)} test(s) (est total {total_est_time:.1f}s):\n"
|
||||||
|
)
|
||||||
|
for t in ci_tests:
|
||||||
|
msg += f" - {t.filename} (est_time={t.est_time})\n"
|
||||||
|
|
||||||
total_est_time = sum(t.est_time for t in ci_tests)
|
print(msg, flush=True)
|
||||||
print(f"✅ Enabled {len(ci_tests)} test(s) (est total {total_est_time:.1f}s):")
|
|
||||||
for t in ci_tests:
|
|
||||||
print(f" - {t.filename} (est_time={t.est_time})")
|
|
||||||
|
|
||||||
|
|
||||||
def run_a_suite(args):
|
def run_a_suite(args):
|
||||||
|
|||||||
Reference in New Issue
Block a user