Skip to content

Commit 8a28561

Browse files
committed
simplify "make test" output for bash tests (#20)
1 parent a245112 commit 8a28561

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ testexamples: build
7373

7474
# run tests that require --shell /bin/bash
7575
testbash: build
76-
@echo fail when run with /bin/sh
77-
! $(SHELLTEST) tests/bash
78-
@echo succeed when run with /bin/bash
79-
$(SHELLTEST) tests/bash --shell /bin/bash
76+
@echo bash tests should fail when run with /bin/sh:
77+
@(! $(SHELLTEST) tests/bash >/dev/null) && echo ok
78+
@echo bash tests should succeed when run with /bin/bash:
79+
@$(SHELLTEST) tests/bash --shell /bin/bash
8080

8181
# run shell tests with several ghc versions
8282
# test-with-resolvers: build-with-resolvers $(foreach r,$(RESOLVERS),test-with-resolver-$r)

0 commit comments

Comments
 (0)