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>
This commit is contained in:
David Heidelberg
2022-11-03 17:48:26 +01:00
committed by Marge Bot
parent 88b1bb326d
commit e1d40d11f5

View File

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