diff --git a/autobuild.sh b/autobuild.sh index c285817f96..c7b369698d 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -8,14 +8,14 @@ if [[ ! -f $1 ]]; then exit 1 fi - -out=$PWD rootdir=$(readlink -f $(dirname $0)) -scanbuild="scan-build -o $out/scan-build-tmp --status-bugs" source "$1" source "$rootdir/test/common/autotest_common.sh" +out=$output_dir +scanbuild="scan-build -o $output_dir/scan-build-tmp --status-bugs" + rm -rf /tmp/spdk mkdir /tmp/spdk umask 022