From ff220dfb4490c7fc25179fd22282d072696c730e Mon Sep 17 00:00:00 2001 From: Vincent Donnefort Date: Wed, 26 Aug 2020 15:18:24 +0100 Subject: [PATCH] pcmark: do not clear on reset The PCMark Work2.0 data-set is cleared and downloaded before each run. This operation is time-consuming and pollutes the benchmark instrumentation. Disabling clear_data_on_reset for the PCMark workload bypass this per-run download. --- wa/workloads/pcmark/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wa/workloads/pcmark/__init__.py b/wa/workloads/pcmark/__init__.py index 694f97b2..e7c9e279 100755 --- a/wa/workloads/pcmark/__init__.py +++ b/wa/workloads/pcmark/__init__.py @@ -38,12 +38,15 @@ class PcMark(ApkUiautoWorkload): 1. Open PCMark application 2. Swipe right to the Benchmarks screen 3. Select the Work 2.0 benchmark - 4. Install the Work 2.0 benchmark + 4. If needed, install the Work 2.0 benchmark (requires an internet connection) 5. Execute the Work 2.0 benchmark Known working APK version: 2.0.3716 ''' + # Do not delete Work 2.0 data-set before each run + clear_data_on_reset = False + def __init__(self, target, **kwargs): super(PcMark, self).__init__(target, **kwargs) self.gui.timeout = 1500