From a74675deb5f5ddc170a2d466d793560a97581fd2 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Thu, 19 Dec 2019 17:54:15 -0700 Subject: [PATCH] autobuild: reorganize prework for script. Change-Id: I83edd918a34cfad60658c55fb33882339a2199a5 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478549 Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Reviewed-by: Paul Luse --- autobuild.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index 969d151a6..2bbc6d326 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -8,23 +8,23 @@ if [[ ! -f $1 ]]; then exit 1 fi -source "$1" - -rootdir=$(readlink -f $(dirname $0)) -source "$rootdir/test/common/autotest_common.sh" out=$PWD +rootdir=$(readlink -f $(dirname $0)) scanbuild="scan-build -o $out/scan-build-tmp --status-bugs" -umask 022 +source "$1" +source "$rootdir/test/common/autotest_common.sh" +rm -rf /tmp/spdk +mkdir /tmp/spdk +umask 022 cd $rootdir +# Print some test system info out for the log date -u git describe --tags - ./configure $config_params -# Print some test system info out for the log echo "** START ** Info for Hostname: $HOSTNAME" uname -a $MAKE cc_version @@ -117,8 +117,6 @@ run_test "autobuild_header_dependency_check" header_dependency_check # Test 'make install' timing_enter make_install -rm -rf /tmp/spdk -mkdir /tmp/spdk $MAKE $MAKEFLAGS install DESTDIR=/tmp/spdk prefix=/usr timing_exit make_install