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
*bash_unit* supports the http://testanything.org/[Test Anything Protocol] so you can ask for a tap formatted
@@ -597,7 +599,7 @@ With bash, the result code of a pipeline equals the result code of the last comm
597
599
598
600
An alternative may be to activate bash _pipefail_ option but this may introduce unwanted side effects. We can also simply not output anything in __ps_ so that _grep_ fails:
599
601
600
-
```test
602
+
```shell
601
603
code() {
602
604
ps a | grep apache
603
605
}
@@ -619,7 +621,7 @@ bad, don't do that.
619
621
620
622
Moreover, *assert_equals* output is captured by _ps_ and this just messes with the display of our test results:
0 commit comments