File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ function test_run {
86
86
echo -e " RESULT: PASSED\n" >&2
87
87
return 0;
88
88
elif [ $ret_val -eq 1 ]; then
89
- result=$[ $result + $ret_val ]
89
+ result=$(( $result + $ret_val ))
90
90
echo " [ FAIL ]" ;
91
91
echo -e " RESULT: FAILED\n" >&2
92
92
return 1;
@@ -95,7 +95,7 @@ function test_run {
95
95
echo -e " RESULT: SKIPPED\n" >&2
96
96
return 0;
97
97
else
98
- result=$[ $result + $ret_val ]
98
+ result=$(( $result + $ret_val ))
99
99
echo " [ WARN ]" ;
100
100
echo -e " RESULT: WARNING (unknown exist status $ret_val )\n" >&2
101
101
return 1;
@@ -174,10 +174,10 @@ function verify_results {
174
174
175
175
if [ ! $RES = $CMT ]; then
176
176
echo " Result of ${OVAL_ID} should be ${CMT} and is ${RES} "
177
- ret_val=$[ $ret_val + 1]
177
+ ret_val=$(( $ret_val + 1 ))
178
178
fi
179
-
180
- ID=$[ $ID +1]
179
+
180
+ ID=$(( $ID + 1 ))
181
181
done
182
182
183
183
return $( [ $ret_val -eq 0 ])
You can’t perform that action at this time.
0 commit comments