Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3053fc09 authored by Zhuoyao Zhang's avatar Zhuoyao Zhang
Browse files

Fix VibratorHidlProfilingTest with the new configure to enable

profiling.

Test: run vts -m VibratorHidlProfilingTest
Change-Id: If0b14263747f7639c5adb1a3e4ab0ecb59b7b42f
parent 9c1d0901
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)