Skip to content

Commit 6d51e10

Browse files
committed
updated test_validate_yaml.sh
1 parent 8b4d495 commit 6d51e10

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/test_validate_yaml.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ srcdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919

2020
cd "$srcdir/..";
2121

22+
# shellcheck disable=SC1091
2223
. ./tests/utils.sh
2324

2425
section "Testing validate_yaml.py"
@@ -29,8 +30,8 @@ if is_inside_docker; then
2930
fi
3031

3132
if [ $# -gt 0 ]; then
32-
echo "validate_yaml.py $@"
33-
./validate_yaml.py $@
33+
echo "validate_yaml.py $*"
34+
./validate_yaml.py "$@"
3435
echo
3536
fi
3637

@@ -65,6 +66,7 @@ echo "testing stdin"
6566
./validate_yaml.py - < "$data_dir/test.yaml"
6667
./validate_yaml.py < "$data_dir/test.yaml"
6768
echo "testing stdin mixed with filename"
69+
# shellcheck disable=SC2094
6870
./validate_yaml.py "$data_dir/test.yaml" - < "$data_dir/test.yaml"
6971
echo
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

0 commit comments

Comments
 (0)