Skip to content

Commit 8ddc03a

Browse files
committed
updated test_json_docs_to_bulk_multiline.sh
1 parent a452171 commit 8ddc03a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_json_docs_to_bulk_multiline.sh

Lines changed: 5 additions & 2 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 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"
8788
echo "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

0 commit comments

Comments
 (0)