]> git.draconx.ca Git - dxcommon.git/commit
test-tap: Fix Solaris /bin/sh "prove: not found" on stderr.
authorNick Bowler <nbowler@draconx.ca>
Sat, 1 Jul 2023 21:32:57 +0000 (17:32 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 1 Jul 2023 21:36:22 +0000 (17:36 -0400)
commit4081782832b7dc8b7426cedcec9a4495229dda6c
treeee433ebf21ffc07a8a994ab0f7ece9819c3b895f
parent77f6e4eadbfbddd069ebc259921f4587856d488a
test-tap: Fix Solaris /bin/sh "prove: not found" on stderr.

The prove command is intended to be optional, just to display a summary
of the test result if it is available.  However, on old Solaris /bin/sh,
our command

  prove ... 2>&1

doesn't redirect the error message from the shell when prove is not
found.  We can use a command like like

  { prove ...; } 2>&1

instead, which does redirect the error.
snippet/test-tap.at