Skip to content

Commit 824b3fc

Browse files
committed
scripts/lib/robot.sh: Return RC depending on test results
based on 1fdf4f2 Signed-off-by: Filip Gołaś <[email protected]>
1 parent 6fb1d7a commit 824b3fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/lib/robot.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ execute_robot() {
148148
#
149149
# Firstly, the provided argument will be parsed to get the proper name
150150
# for the results directory.
151+
overall_rc=0
151152
for _test_name in "${_test_path[@]}"; do
152153
if [[ "$_test_name" == *"/"* && "$_test_name" != */ ]]; then
153154
_test_scope_name="${_test_name##*/}"
@@ -188,7 +189,11 @@ execute_robot() {
188189
${_robot_args[*]} \
189190
${_test_name}
190191
"
191-
echo "$command"
192+
#echo "$command"
192193
eval "$command"
194+
if [[ $? -ne 0 ]]; then
195+
overall_rc=1
196+
fi
193197
done
198+
return $overall_rc
194199
}

0 commit comments

Comments
 (0)