File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919
2020cd " $srcdir /.." ;
2121
22+ # shellcheck disable=SC1091
2223. ./tests/utils.sh
2324
2425section " Testing validate_yaml.py"
@@ -29,8 +30,8 @@ if is_inside_docker; then
2930fi
3031
3132if [ $# -gt 0 ]; then
32- echo " validate_yaml.py $@ "
33- ./validate_yaml.py $@
33+ echo " validate_yaml.py $* "
34+ ./validate_yaml.py " $@ "
3435 echo
3536fi
3637
@@ -65,6 +66,7 @@ echo "testing stdin"
6566./validate_yaml.py - < " $data_dir /test.yaml"
6667./validate_yaml.py < " $data_dir /test.yaml"
6768echo " testing stdin mixed with filename"
69+ # shellcheck disable=SC2094
6870./validate_yaml.py " $data_dir /test.yaml" - < " $data_dir /test.yaml"
6971echo
7072
@@ -82,7 +84,7 @@ check_broken(){
8284 ./validate_yaml.py -t 1 $options " $filename "
8385 exitcode=$?
8486 set -e
85- if [ $exitcode = $expected_exitcode ]; then
87+ if [ " $exitcode " = " $expected_exitcode " ]; then
8688 echo " successfully detected broken yaml in '$filename ', returned exit code $exitcode "
8789 echo
8890 # elif [ $exitcode != 0 ]; then
You can’t perform that action at this time.
0 commit comments