run-hap-test.sh: Fix erroneously reporting PASS on actual test FAILURE
Merged
run-hap-test.sh: Fix erroneously reporting PASS on actual test FAILURE
feat/initial-scripts
into
main
1 unresolved thread
1 unresolved thread
Compare changes
+ 15
− 5
@@ -76,14 +76,24 @@ run_hap_test() (
Should this really be
-gt 0
rather than= 0
or-eq 0
? Not fully sure what is supposed to happen here, but looks to me like the summary of "total cases: 0" isn't right if there were cases (and they actually succeeded)that's happening in failure situation when
$TESTCASE_REPORT
is empty, when we don't know thetotal cases
number. To mark such situation we're settingfailure 1
in generated report. If there are no PASS cases, we don't generate any report, which is treated as timeout error.