test/common: Include build's environment in the test suite
Change-Id: I0f45c80991c22ca72fb29fdf9af6bc50fcd7ae99 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1107 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
db3ebfe69a
commit
6aa9db94b3
@ -17,6 +17,14 @@ set -e
|
||||
shopt -s expand_aliases
|
||||
|
||||
source "$rootdir/test/common/applications.sh"
|
||||
if [[ -e $rootdir/test/common/build_config.sh ]]; then
|
||||
source "$rootdir/test/common/build_config.sh"
|
||||
elif [[ -e $rootdir/mk/config.mk ]]; then
|
||||
build_config=$(<"$rootdir/mk/config.mk")
|
||||
source <(echo "${build_config//\?=/=}")
|
||||
else
|
||||
source "$rootdir/CONFIG"
|
||||
fi
|
||||
|
||||
# Dummy function to be called after restoring xtrace just so that it appears in the
|
||||
# xtrace log. This way we can consistently track when xtrace is enabled/disabled.
|
||||
|
Loading…
Reference in New Issue
Block a user