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>

[ROCm/rocprofiler-sdk commit: 85cdc11f8b]
This commit is contained in:
Madsen, Jonathan
2025-05-26 22:39:59 -05:00
committed by GitHub
parent abf3f869e9
commit 8c9270f59c
2 changed files with 4 additions and 2 deletions
@@ -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)))