Skip to content

Commit 78f5b4b

Browse files
committed
updated test_headtail.sh
1 parent 1d0ff74 commit 78f5b4b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_headtail.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ echo "
2525

2626
cd "$srcdir/..";
2727

28+
# shellcheck disable=SC1091
2829
. ./tests/utils.sh
2930

3031
until [ $# -lt 1 ]; do
@@ -34,15 +35,15 @@ until [ $# -lt 1 ]; do
3435
done
3536

3637
data_dir="tests/data"
37-
broken_dir="$data_dir/broken_json_data"
38+
#broken_dir="$data_dir/broken_json_data"
3839

3940
testfile="$data_dir/plant_catalog.xml"
4041

4142
check(){
4243
cmd="$1"
4344
expected="$2"
4445
msg="$3"
45-
output="$(eval $cmd)"
46+
output="$(eval "$cmd")"
4647
result="$(cksum <<< "$output")"
4748
echo -n "checking headtail $msg => "
4849
if [ "$result" = "$expected" ]; then
@@ -52,7 +53,7 @@ check(){
5253
echo
5354
echo "full output: "
5455
echo
55-
eval $cmd
56+
eval "$cmd"
5657
echo
5758
echo "cksum: $result"
5859
exit 1

0 commit comments

Comments
 (0)