From b2f977bd561df5f8b71de1d7fb2f026e310ae82e Mon Sep 17 00:00:00 2001 From: Hector Cao Date: Mon, 21 Oct 2024 10:55:10 +0200 Subject: [PATCH] gpu-load.py : do not print out no critical message this will make the test fail parsing the json load data because it will contain the error message --- checkbox-provider-kivu/bin/gpu-load.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkbox-provider-kivu/bin/gpu-load.py b/checkbox-provider-kivu/bin/gpu-load.py index 0e19832..b1746c5 100755 --- a/checkbox-provider-kivu/bin/gpu-load.py +++ b/checkbox-provider-kivu/bin/gpu-load.py @@ -20,7 +20,8 @@ import time from gpu_utils import compute_avg_intel - +# NB: this script should only print in stdout the GPU load +# and critical errors def load_intel(fname : str, timeout : int) -> float: try: @@ -63,7 +64,6 @@ def get_amd_vcn(): else: load = -1 except OSError: - print('Error reading /sys/kernel/debug/dri/0/amdgpu_pm_info') pass return load