Skip to content

Commit 358d18c

Browse files
[performance test] Fix error message
Using is_failure instead of percentage_diff > 0 considers the special case of "osu_bibw" (8 lines above), and simplify the code
1 parent c63157a commit 358d18c

File tree

1 file changed

+1
-1
lines changed
  • tests/integration-tests/tests/performance_tests

1 file changed

+1
-1
lines changed

tests/integration-tests/tests/performance_tests/test_osu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def _check_osu_benchmarks_results(test_datadir, output_dir, os, instance, mpi_ve
256256

257257
percentage_diff = (float(value) - float(tolerated_value)) / float(tolerated_value) * 100
258258

259-
outcome = "DEGRADATION" if percentage_diff > 0 else "IMPROVEMENT"
259+
outcome = "DEGRADATION" if is_failure else "IMPROVEMENT"
260260

261261
message = (
262262
f"{outcome} : {mpi_version} - {benchmark_name} - packet size {packet_size}: "

0 commit comments

Comments
 (0)