Skip to content

Commit 6796f02

Browse files
committed
CI: Log Build & Test Time
Print the build and the test time to stdout. This is needed to see if remote CI jobs actually use ccache and other mechanisms to accelerate builds.
1 parent bd95dc4 commit 6796f02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

regtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ def test_suite(argv):
555555
test.compile_successful = True
556556
# Compute compile time
557557
test.build_time = time.time() - test.build_time
558+
suite.log.log(f"Compilation time: {test.build_time:.3f} s")
558559

559560
# copy the make.out into the web directory
560561
shutil.copy(f"{output_dir}/{test.name}.make.out", suite.full_web_dir)
@@ -732,6 +733,7 @@ def test_suite(argv):
732733
suite.run_test(test, base_cmd)
733734

734735
test.wall_time = time.time() - test.wall_time
736+
suite.log.log(f"Execution time: {test.wall_time:.3f} s")
735737

736738
# Check for performance drop
737739
if test.return_code == 0 and test.check_performance:

0 commit comments

Comments
 (0)