We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d0ff74 commit 78f5b4bCopy full SHA for 78f5b4b
tests/test_headtail.sh
@@ -25,6 +25,7 @@ echo "
25
26
cd "$srcdir/..";
27
28
+# shellcheck disable=SC1091
29
. ./tests/utils.sh
30
31
until [ $# -lt 1 ]; do
@@ -34,15 +35,15 @@ until [ $# -lt 1 ]; do
34
35
done
36
37
data_dir="tests/data"
-broken_dir="$data_dir/broken_json_data"
38
+#broken_dir="$data_dir/broken_json_data"
39
40
testfile="$data_dir/plant_catalog.xml"
41
42
check(){
43
cmd="$1"
44
expected="$2"
45
msg="$3"
- output="$(eval $cmd)"
46
+ output="$(eval "$cmd")"
47
result="$(cksum <<< "$output")"
48
echo -n "checking headtail $msg => "
49
if [ "$result" = "$expected" ]; then
@@ -52,7 +53,7 @@ check(){
52
53
echo
54
echo "full output: "
55
- eval $cmd
56
+ eval "$cmd"
57
58
echo "cksum: $result"
59
exit 1
0 commit comments