diff --git a/test/bats.bats b/test/bats.bats index f6ec532..bef3ce9 100755 --- a/test/bats.bats +++ b/test/bats.bats @@ -112,9 +112,14 @@ fixtures bats } @test "test should not output DEBUG line if DEBUG is not set" { + export DEBUG=1 run bats "$FIXTURE_ROOT/debug.bats" [ $status -eq 0 ] - [[ ! $(echo $output | grep DEBUG) ]] + # [[ ! $(echo $output | grep DEBUG) ]] + echo $output | { + run grep DEBUG + [[ $status -ne 0 ]] + } } @test "test should output DEBUG line if DEBUG is set" {