Commit d2b7d8ad authored by Michal Berger's avatar Michal Berger Committed by Jim Harris
Browse files

autotest_setup: source pkgdep/git right before the install_sources() call



This gives autotest_setup.sh a chance to run through most of its
steps uninterrupted under a completely bare system. Currently, if
the gcc is missing, the whole execution will fail upon source'ing
the pkgdep/git as there's an unconditional use of gcc which attempts
to check its version.

By bundling use of pkgdep/git tightly with --test-conf=* we allow
for potential --install-deps|--upgrade to complete without any
hiccups which on their own should provide needed dependencies for
pkgdep/git.

Change-Id: I2ab5423721dd963fcb9e0aaee5d902178609a37f
Signed-off-by: default avatarMichal Berger <michallinuxstuff@gmail.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25582


Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz@tzawadzki.com>
Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
parent a087f7be
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ rootdir=$(readlink -f "$vmsetupdir/../../../")
source "$rootdir/scripts/common.sh"

set_os_id_version
source "$vmsetupdir/pkgdep/git"
detect_package_manager

if [[ -e $vmsetupdir/pkgdep/os/$OSID ]]; then
@@ -146,4 +145,7 @@ if $INSTALL; then
	install "${packages[@]}"
fi

if [[ -n $CONF ]]; then
	source "$vmsetupdir/pkgdep/git"
	install_sources
fi