configure test for shell pipefail feature
set some piped commands to pipefail
use pipefail in test scripts, replace cat with input redirection