From 3053fc09078207c723dcf29f1ee4ef5b409f3a53 Mon Sep 17 00:00:00 2001 From: Zhuoyao Zhang Date: Fri, 2 Dec 2016 16:35:56 -0800 Subject: [PATCH] Fix VibratorHidlProfilingTest with the new configure to enable profiling. Test: run vts -m VibratorHidlProfilingTest Change-Id: If0b14263747f7639c5adb1a3e4ab0ecb59b7b42f --- .../vts/testcases/hal/vibrator/hidl/host/VibratorHidlTest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vibrator/1.0/vts/functional/vts/testcases/hal/vibrator/hidl/host/VibratorHidlTest.py b/vibrator/1.0/vts/functional/vts/testcases/hal/vibrator/hidl/host/VibratorHidlTest.py index 0007d896b6..e8fae30c80 100644 --- a/vibrator/1.0/vts/functional/vts/testcases/hal/vibrator/hidl/host/VibratorHidlTest.py +++ b/vibrator/1.0/vts/functional/vts/testcases/hal/vibrator/hidl/host/VibratorHidlTest.py @@ -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)