diff --git a/scripts/common/sonic-mgmt-common-build/test.sh b/scripts/common/sonic-mgmt-common-build/test.sh index 7b959386937a..aa30fe20ab67 100755 --- a/scripts/common/sonic-mgmt-common-build/test.sh +++ b/scripts/common/sonic-mgmt-common-build/test.sh @@ -8,6 +8,9 @@ STATUS=0 DEBDIR=$(realpath sonic-mgmt-common/debian/sonic-mgmt-common) +[[ -f sonic-mgmt-common/tools/test/database_config.json ]] && \ + export DB_CONFIG_PATH=${PWD}/sonic-mgmt-common/tools/test/database_config.json + # Run CVL tests pushd sonic-mgmt-common/build/tests/cvl diff --git a/scripts/common/sonic-mgmt-framework-build/test.sh b/scripts/common/sonic-mgmt-framework-build/test.sh index aa2ed112ba81..ed7b30fdec44 100755 --- a/scripts/common/sonic-mgmt-framework-build/test.sh +++ b/scripts/common/sonic-mgmt-framework-build/test.sh @@ -7,6 +7,9 @@ STATUS=0 DEBDIR=$(realpath sonic-mgmt-common/debian/sonic-mgmt-common) +[[ -f sonic-mgmt-common/tools/test/database_config.json ]] && \ + export DB_CONFIG_PATH=${PWD}/sonic-mgmt-common/tools/test/database_config.json + pushd sonic-mgmt-framework/build/tests/rest export CVL_SCHEMA_PATH=${DEBDIR}/usr/sbin/schema