You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, good test\") at",
647
+
replace(c.output, r" on worker \d+"=>"")
648
+
)
649
+
else
639
650
@testoccursin("""
640
-
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, good test\") at \e[39m\e[1mtest/error_in_setup_test.jl:1\e[22m
651
+
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, good test\") at \e[39m\e[1m$(path):1\e[22m
641
652
SetupThatErrors msg
642
653
""",
643
654
replace(c.output, r" on worker \d+"=>""))
644
655
645
656
@testoccursin("""
646
-
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, bad test\") at \e[39m\e[1mtest/error_in_setup_test.jl:1\e[22m
657
+
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, bad test\") at \e[39m\e[1m$(path):1\e[22m
647
658
SetupThatErrors msg
648
659
""",
649
660
replace(c.output, r" on worker \d+"=>""))
@@ -652,19 +663,20 @@ end
652
663
# that we don't accumulate logs from all previous failed attempts (which would get
653
664
# really spammy if the test setup is used by 100 test items).
654
665
@test!occursin("""
655
-
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, good test\") at \e[39m\e[1mtest/error_in_setup_test.jl:1\e[22m
666
+
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, good test\") at \e[39m\e[1m$(path):1\e[22m
656
667
SetupThatErrors msg
657
668
SetupThatErrors msg
658
669
""",
659
670
replace(c.output, r" on worker \d+"=>"")
660
671
)
661
672
@test!occursin("""
662
-
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, bad test\") at \e[39m\e[1mtest/error_in_setup_test.jl:1\e[22m
673
+
\e[36m\e[1mCaptured logs\e[22m\e[39m for test setup \"SetupThatErrors\" (dependency of \"bad setup, bad test\") at \e[39m\e[1m$(path):1\e[22m
663
674
SetupThatErrors msg
664
675
SetupThatErrors msg
665
676
""",
666
677
replace(c.output, r" on worker \d+"=>"")
667
678
)
679
+
end# iswindows
668
680
end
669
681
670
682
@testset"test crashing testitem"begin
@@ -685,7 +697,8 @@ end
685
697
# Test the error is as expected
686
698
err =only(non_passes(results))
687
699
@test err.test_type ==:nontest_error
688
-
@test err.value ==string(ErrorException("Worker process aborted (signal=6) running test item \"Abort\" (run=1)"))
700
+
sig = Base.Sys.iswindows() ?0:6
701
+
@test err.value ==string(ErrorException("Worker process aborted (signal=$(sig)) running test item \"Abort\" (run=1)"))
689
702
end
690
703
691
704
@testset"test retrying failing testitem"begin
@@ -908,7 +921,12 @@ end
908
921
909
922
@testset"Duplicate names in same file throws"begin
0 commit comments