mint fixes for go1.14 (#10294)

add go.mod to ensure that mint can be
built with go1.14.x
This commit is contained in:
Harshavardhana
2020-08-19 20:07:37 -07:00
committed by GitHub
parent ccd967e3be
commit 98ca770f81
14 changed files with 25 additions and 11 deletions

View File

@@ -97,7 +97,7 @@ function run_test()
fi
## Show error.log when status is empty or not "FAIL".
## This may happen when test run failed without providing logs.
if [ "$jq_rv" -ne 0 ] || [ -z "$status" ] || ([ "$status" != "FAIL" ] && [ "$status" != "fail" ]); then
if [ "$jq_rv" -ne 0 ] || [ -z "$status" ] || { [ "$status" != "FAIL" ] && [ "$status" != "fail" ]; }; then
cat "$BASE_LOG_DIR/$sdk_name/$ERROR_FILE"
else
jq . <<<"$entry"
@@ -157,10 +157,13 @@ function main()
sdks=( "$@" )
if [ "$#" -eq 0 ]; then
sdks=( $(ls "$TESTS_DIR") )
cd "$TESTS_DIR" || exit
sdks=(*)
cd .. || exit
fi
for sdk in "${sdks[@]}"; do
sdk=$(basename "$sdk")
run_list=( "${run_list[@]}" "$TESTS_DIR/$sdk" )
done