From 86ca8dcba864d085051bb4bcc20b980d96827f9c Mon Sep 17 00:00:00 2001 From: "Jan Horacek (jahor/jhrcz)" Date: Thu, 25 Apr 2013 17:19:59 +0200 Subject: [PATCH] report output content when test fails --- libexec/bats-exec-test | 1 + 1 file changed, 1 insertion(+) diff --git a/libexec/bats-exec-test b/libexec/bats-exec-test index 2c70426..290ff59 100755 --- a/libexec/bats-exec-test +++ b/libexec/bats-exec-test @@ -37,6 +37,7 @@ run() { set +e output="$("$@" 2>&1)" status="$?" + echo "$output" | sed -e 's/^/ #output#/' > "$BATS_OUT" IFS=$'\n' lines=($output) [ -z "$e" ] || set -e }