Fix logic error in PR #410 (#414)

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Co-authored-by: Ma, Bing <Bing.Ma@amd.com>
This commit is contained in:
Madsen, Jonathan
2025-05-26 22:39:59 -05:00
zatwierdzone przez GitHub
rodzic b48fa532bc
commit 85cdc11f8b
2 zmienionych plików z 4 dodań i 2 usunięć
@@ -124,7 +124,8 @@ def test_validate_counter_collection_pmc1_json(json_data):
sq_waves_values.append(record["value"])
# Check aggregate sum
assert sum(sq_waves_values) > 0, f"SQ_WAVES value is not > 0"
if agent["name"] not in skip_gfx:
assert sum(sq_waves_values) > 0, "SQ_WAVES value is not > 0"
di_uniq = list(set(sorted(dispatch_ids)))
# make sure the dispatch ids are unique and ordered
@@ -113,7 +113,8 @@ def validate_json(json_data, counter_name, check_dispatch):
values.append(record["value"])
# Check aggregate sum
assert sum(values) > 0, f"{counter_name} value is not > 0"
if agent["name"] not in skip_gfx:
assert sum(values) > 0, f"{counter_name} value is not > 0"
if check_dispatch:
di_uniq = list(set(sorted(dispatch_ids)))