Skip to content

Commit bd618b4

Browse files
maleadtgiordano
andauthored
Update src/ParallelTestRunner.jl
Co-authored-by: Mosè Giordano <[email protected]>
1 parent d21e15a commit bd618b4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/ParallelTestRunner.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,12 +771,18 @@ function runtests(ARGS; testfilter = Returns(true), RecordType = TestRecord,
771771

772772
# construct a testset to render the test results
773773
t1 = time()
774-
o_ts = Test.DefaultTestSet("Overall"; verbose=do_verbose)
775774
if VERSION < v"1.13.0-DEV.1037"
775+
o_ts = Test.DefaultTestSet("Overall"; verbose=do_verbose)
776776
o_ts.time_start = t0
777777
o_ts.time_end = t1
778778
else
779-
#@atomic o_ts.time_start = t0
779+
o_ts = if v"1.13.0-DEV.1037" <= VERSION < v"1.13.0-DEV.1297"
780+
# There's a small range of commits in the v1.13 development series where there's
781+
# no way to retroactively set the start time of the testset after it started.
782+
Test.DefaultTestSet("Overall"; verbose=do_verbose)
783+
else
784+
Test.DefaultTestSet("Overall"; verbose=do_verbose, time_start=t0)
785+
end
780786
@atomic o_ts.time_end = t1
781787
end
782788
with_testset(o_ts) do

0 commit comments

Comments
 (0)