#!/bin/sh

PATH="@ATFBIN@:${PATH}"
export PATH

if [ -n "@ATFBIN@" ]
then
	atf-run > atf.out
        status=$?
        atf-report < atf.out
        [ $status -eq 0 ] && rm -f atf.out
fi

#!/bin/sh

PATH="@ATFBIN@:${PATH}"
export PATH

if [ -n "@ATFBIN@" ]
then
	atf-run > atf.out
	status=$?

        # | cat is there to force non-fancy output
	atf-report < atf.out | cat

	[ $status -eq 0 ] && rm -f atf.out
fi

Add back the "| cat" so that output files don't get truncated
Add back the "| cat" so that output files don't get truncated
