Commit 17f255e2 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

autotest: use inherited output_dir if it's set



Change-Id: I182ebe8dbbd650b6093ac34e52a2ff595811e047
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 84b8f0cc
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -18,11 +18,14 @@ esac

MAKEFLAGS=${MAKEFLAGS:--j16}

if [ -z "$output_dir" ]; then
	if [ -z "$rootdir" ] || [ ! -d "$rootdir/../output" ]; then
		output_dir=.
	else
		output_dir=$rootdir/../output
	fi
	export output_dir
fi

if hash valgrind &> /dev/null; then
	# TODO: add --error-exitcode=2 when all Valgrind warnings are fixed