ci/update_traces_checksum.py: check if checksum is in the array, not it's value

Fixes: 45eda06953 ("ci: introduce update_traces_checksum.py")

Reviewed-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19510>
(cherry picked from commit e1d40d11f5)
This commit is contained in:
David Heidelberg 2022-11-03 17:48:26 +01:00 committed by Eric Engestrom
parent 053f0f5934
commit 4734048d51
2 changed files with 2 additions and 5 deletions

View file

@ -90,10 +90,7 @@ def gather_results(
print(f"Trace {trace} crashed")
continue
if (
checksum in target['traces'][trace][dev_name] and
target['traces'][trace][dev_name]['checksum'] == checksum
):
if target['traces'][trace][dev_name].get('checksum') == checksum:
continue
if "label" in target['traces'][trace][dev_name]:

View file

@ -1471,7 +1471,7 @@
"description": "ci/update_traces_checksum.py: check if checksum is in the array, not it's value",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "45eda069531adf17d28538696ace5dfcbc9ad230"
},