Skip to content

Commit

Permalink
gpu-load.py : do not print out no critical message
Browse files Browse the repository at this point in the history
this will make the test fail parsing the json load data
because it will contain the error message
  • Loading branch information
hector-cao committed Oct 21, 2024
1 parent b9a8a61 commit b2f977b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkbox-provider-kivu/bin/gpu-load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b2f977b

Please sign in to comment.