Fixed bug in functional and unit tests driver.sh
- The driver previously did not propagate errors correctly - Adjusted gtest filters driver edit
Ta zmiana jest zawarta w:
%! (template.HTML=
Yiltan Temucin)złożyło 2024-11-15 10:50:31 -06:00
1 rodzic
02834a66a8
złożenie
3f857718fd
2 plików zmienionych
+20
-6
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -20,6 +20,8 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
driver_return_status=0
|
||||
|
||||
if [ $# -eq 0 ] ; then
|
||||
echo "This script must be run with at least 2 arguments."
|
||||
echo 'Usage: ${0} argument1 argument2 [argument3]'
|
||||
@@ -35,6 +37,7 @@ check() {
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "Failed $1" >&2
|
||||
driver_return_status=1
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -579,4 +582,4 @@ case $2 in
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $?
|
||||
exit $(($driver_return_status || $?))
|
||||
Reference in new issue
Zablokuj użytkownika