File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed 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 json_docs_to_bulk_multiline.py"
@@ -85,6 +86,7 @@ echo "testing stdin"
8586./json_docs_to_bulk_multiline.py - < " $data_dir /test.json" > " $stdout "
8687./json_docs_to_bulk_multiline.py < " $data_dir /test.json" > " $stdout "
8788echo " testing stdin and file mix"
89+ # shellcheck disable=SC2094
8890./json_docs_to_bulk_multiline.py " $data_dir /test.json" - < " $data_dir /test.json" > " $stdout "
8991
9092# ==================================================
@@ -102,10 +104,11 @@ check_broken(){
102104 filename=" $1 "
103105 expected_exitcode=" ${2:- 2} "
104106 set +e
105- ./json_docs_to_bulk_multiline.py " $filename " ${@: 3} 2> " $stderr " > " $stdout "
107+ # shellcheck disable=SC2086
108+ ./json_docs_to_bulk_multiline.py " $filename " ${*: 3} 2> " $stderr " > " $stdout "
106109 exitcode=$?
107110 set -e
108- if [ $exitcode = $expected_exitcode ]; then
111+ if [ $exitcode = " $expected_exitcode " ]; then
109112 echo " successfully detected broken json in '$filename ', returned exit code $exitcode "
110113 echo
111114 # elif [ $exitcode != 0 ]; then
You can’t perform that action at this time.
0 commit comments