autotest: use inherited output_dir if it's set

Change-Id: I182ebe8dbbd650b6093ac34e52a2ff595811e047
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2015-10-08 17:22:39 -07:00
parent 84b8f0cc8b
commit 17f255e208

View File

@ -18,10 +18,13 @@ esac
MAKEFLAGS=${MAKEFLAGS:--j16} MAKEFLAGS=${MAKEFLAGS:--j16}
if [ -z "$rootdir" ] || [ ! -d "$rootdir/../output" ]; then if [ -z "$output_dir" ]; then
output_dir=. if [ -z "$rootdir" ] || [ ! -d "$rootdir/../output" ]; then
else output_dir=.
output_dir=$rootdir/../output else
output_dir=$rootdir/../output
fi
export output_dir
fi fi
if hash valgrind &> /dev/null; then if hash valgrind &> /dev/null; then