1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

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.
This commit is contained in:
Sergei Trofimov 2015-05-05 08:17:43 +01:00
parent 8b606dd5f9
commit 1993007d49

View File

@ -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?)')