fix failed tests for testing fn framework about get value from env

This commit is contained in:
koba1t
2023-09-19 06:32:43 +09:00
parent 2bff0d6882
commit 67a0b43c81
11 changed files with 213 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ fi
cmd=$1
skip_pattern="${2-}"
expected_module_count=${3:-45}
expected_module_count=${3:-46}
seen=()
# Hack scripts must be run from the root of the repository.
@@ -25,11 +25,11 @@ export KUSTOMIZE_ROOT
# verify all modules pass validation
for i in $(find . -name go.mod -not -path "./site/*" -not -path "$skip_pattern"); do
pushd .
cd $(dirname $i);
cd $(dirname "$i");
set +x
dir=$(pwd)
module="${dir#$KUSTOMIZE_ROOT}"
module="${dir#"$KUSTOMIZE_ROOT"}"
echo -e "\n----------------------------------------------------------"
echo "Running command in $module"
echo -e "----------------------------------------------------------"