From ac8256a96b8780da10b7f8132fe8b906dbc62af4 Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 31 Aug 2017 11:42:19 +0200 Subject: [PATCH] Regression tests --- test/regression.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/regression.py b/test/regression.py index 85c92e9..b975152 100755 --- a/test/regression.py +++ b/test/regression.py @@ -21,7 +21,7 @@ ok = ":white_check_mark:" warning = ":warning:" error = ":negative_squared_cross_mark:" stress_duration = 10 -repeats = 10 +repeats = 1 def print(*args, **kwargs): @@ -176,7 +176,7 @@ def test(tint2path, config): if exitcode != 0: print("tint2 crashed with exit code {0}!".format(exitcode)) print("Output:") - print("```" + out + "```") + print("```\n" + out.strip() + "\n```") return min_fps, med_fps = compute_min_med_fps(out) leaks = find_asan_leaks(out) @@ -193,7 +193,7 @@ def test(tint2path, config): print("FPS:", "min:", min_fps, "median:", med_fps, fps_status) if mem_status != ok or leak_status != ok or fps_status != ok: print("Output:") - print("```" + out + "```") + print("```\n" + out.strip() + "\n```") stop_xvfb() @@ -242,7 +242,7 @@ def compile_and_report(src_dir): if c.returncode != 0: print("Status: Failed!", error) print("Output:") - print("```" + out + "```") + print("```\n" + out.strip() + "\n```") raise RuntimeError("compilation failed") if "warning:" in out: print("Status: Succeeded with warnings!", warning)