Skip to content

Commit 8a3d3e2

Browse files
Profpatschmergify-bot
authored andcommitted
tests/RunTests.hs: fix failure tests
Problem description by Andreas Herrmann: > run-tests -m '/failures/' doesn't seem to be working as expected. > The test should attempt to build all targets under > //tests/failures/... that are marked with the manual tag and expect > them to fail. However, if I add the manual tag to a suceeding target > e.g. //tests/failures/transitive-deps:lib-c, then the overall test > still suceeds. Manually tested via description that a succeeding test now actually fails. Fixes #943
1 parent d5c03d9 commit 8a3d3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/RunTests.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ main = hspec $ do
6868

6969
for_ all_failure_tests $ \test -> do
7070
it test $ do
71-
assertFailure (bazel ["build", "test"])
71+
assertFailure (bazel ["build", test])
7272

7373
-- Test that the repl still works if we shadow some Prelude functions
7474
it "repl name shadowing" $ do

0 commit comments

Comments
 (0)