mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Fix VibratorHidlProfilingTest with the new configure to enable
profiling. Test: run vts -m VibratorHidlProfilingTest Change-Id: If0b14263747f7639c5adb1a3e4ab0ecb59b7b42f
This commit is contained in:
@@ -39,7 +39,7 @@ class VibratorHidlTest(base_test_with_webdb.BaseTestWithWebDbClass):
|
||||
self.dut.shell.one.Execute(
|
||||
"setprop vts.hal.vts.hidl.get_stub true")
|
||||
|
||||
if getattr(self, self.ENABLE_PROFILING, False):
|
||||
if self.enable_profiling:
|
||||
profiling_utils.EnableVTSProfiling(self.dut.shell.one)
|
||||
|
||||
self.dut.hal.InitHidlHal(
|
||||
@@ -54,7 +54,7 @@ class VibratorHidlTest(base_test_with_webdb.BaseTestWithWebDbClass):
|
||||
""" If profiling is enabled for the test, collect the profiling data
|
||||
and disable profiling after the test is done.
|
||||
"""
|
||||
if getattr(self, self.ENABLE_PROFILING, False):
|
||||
if self.enable_profiling:
|
||||
profiling_trace_path = getattr(
|
||||
self, self.VTS_PROFILING_TRACING_PATH, "")
|
||||
self.ProcessAndUploadTraceData(self.dut, profiling_trace_path)
|
||||
|
||||
Reference in New Issue
Block a user