mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Quickly exit VtsHalNeuralnetworks*TargetTest on failure
This change adds the AndroidTest.xml flag --gtest_break_on_failure to
cause the gtest to terminate after an error has been reached. This early
termination is important in the case where an NN HAL service crashes
mid-test, and all remaining tests would otherwise continue to run.
Bug: 197035200
Test: m vts -j
Test: vts-tradefed
Change-Id: I0b9a14345475e432b93f92c23010a8b39712443a
Merged-In: I0b9a14345475e432b93f92c23010a8b39712443a
(cherry picked from commit ac45a5d77e)
This commit is contained in:
@@ -29,5 +29,6 @@
|
||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||
<option name="module-name" value="VtsHalNeuralnetworksV1_0TargetTest" />
|
||||
<option name="native-test-timeout" value="20m" />
|
||||
<option name="native-test-flag" value="--gtest_break_on_failure" />
|
||||
</test>
|
||||
</configuration>
|
||||
|
||||
@@ -29,5 +29,6 @@
|
||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||
<option name="module-name" value="VtsHalNeuralnetworksV1_1TargetTest" />
|
||||
<option name="native-test-timeout" value="20m" />
|
||||
<option name="native-test-flag" value="--gtest_break_on_failure" />
|
||||
</test>
|
||||
</configuration>
|
||||
|
||||
@@ -29,5 +29,6 @@
|
||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||
<option name="module-name" value="VtsHalNeuralnetworksV1_2TargetTest" />
|
||||
<option name="native-test-timeout" value="20m" />
|
||||
<option name="native-test-flag" value="--gtest_break_on_failure" />
|
||||
</test>
|
||||
</configuration>
|
||||
|
||||
@@ -29,5 +29,6 @@
|
||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||
<option name="module-name" value="VtsHalNeuralnetworksV1_3TargetTest" />
|
||||
<option name="native-test-timeout" value="20m" />
|
||||
<option name="native-test-flag" value="--gtest_break_on_failure" />
|
||||
</test>
|
||||
</configuration>
|
||||
|
||||
@@ -29,5 +29,6 @@
|
||||
<option name="native-test-device-path" value="/data/local/tmp" />
|
||||
<option name="module-name" value="VtsHalNeuralnetworksTargetTest" />
|
||||
<option name="native-test-timeout" value="20m" />
|
||||
<option name="native-test-flag" value="--gtest_break_on_failure" />
|
||||
</test>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user