From 1993007d496db984d198f0e6e9bdab50d87ea665 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 5 May 2015 08:17:43 +0100 Subject: [PATCH] telemetry: relaxing the initial validation check It seems valid install may return values other than 0xff00. Relaxing the check to consider anything above 0xff to be valid. --- wlauto/workloads/telemetry/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/workloads/telemetry/__init__.py b/wlauto/workloads/telemetry/__init__.py index b2604a2a..02f3a3cc 100644 --- a/wlauto/workloads/telemetry/__init__.py +++ b/wlauto/workloads/telemetry/__init__.py @@ -107,7 +107,7 @@ class Telemetry(Workload): def validate(self): ret = os.system('{} > {} 2>&1'.format(self.run_benchmark_path, get_null())) - if ret == 0xff00: # is it supposed to be 0xff? + if ret > 255: pass # telemetry found and appears to be installed properly. elif ret == 127: raise WorkloadError('run_benchmarks not found (did you specify correct run_benchmarks_path?)')