@@ -276,11 +276,11 @@ t1 = now()
276276elapsed = canonicalize (Dates. CompoundPeriod (t1- t0))
277277println (" Testing finished in $elapsed " )
278278
279+ # construct a testset to render the test results
280+ completed_tests = Set {String} ()
281+ o_ts = Test. DefaultTestSet (" Overall" )
279282@static if VERSION < v " 1.13.0-DEV.1044"
280- # construct a testset to render the test results
281- o_ts = Test. DefaultTestSet (" Overall" )
282283 Test. push_testset (o_ts)
283- completed_tests = Set {String} ()
284284 for (testname, (resp,)) in results
285285 push! (completed_tests, testname)
286286 if isa (resp, Test. DefaultTestSet)
@@ -349,10 +349,7 @@ println("Testing finished in $elapsed")
349349 throw (Test. FallbackTestSetException (" Test run finished with errors" ))
350350 end
351351else
352- # construct a testset to render the test results
353- o_ts = Test. DefaultTestSet (" Overall" )
354352 Test. @with_testset o_ts begin
355- completed_tests = Set {String} ()
356353 for (testname, (resp,)) in results
357354 push! (completed_tests, testname)
358355 if isa (resp, Test. DefaultTestSet)
@@ -413,7 +410,14 @@ else
413410 end
414411 println ()
415412 Test. print_test_results (o_ts, 1 )
416- if ! o_ts. anynonpass
413+
414+ success = @static if VERSION < v " 1.13.0-DEV.1044"
415+ ! o_ts. anynonpass
416+ else
417+ o_ts. anynonpass == 0x01
418+ end
419+
420+ if success
417421 println (" \0 33[32;1mSUCCESS\0 33[0m" )
418422 else
419423 println (" \0 33[31;1mFAILURE\0 33[0m\n " )
0 commit comments