Skip to content

Commit

Permalink
FPGA tests: regex replaced by report field length
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastruemper committed Jul 22, 2022
1 parent b6f5b11 commit 18ee6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fpga/kernel_detection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def kernels_inside_component_0(x: dace.float32[8], y: dace.float32[8], v: dace.f

report = sdfg.get_latest_report()
assert len(re.findall(r"[0-9\.]+\s+[0-9\.]+\s+[0-9\.]+\s+[0-9\.]+", str(report))) == 5
assert len(re.findall(r"Full FPGA .+ runtime", str(report))) == 2
assert len(report.durations) == 2

return sdfg

Expand Down

0 comments on commit 18ee6b0

Please sign in to comment.