Skip to content
Snippets Groups Projects
Commit fa35a254 authored by Oraji, Yussur Mustafa's avatar Oraji, Yussur Mustafa Committed by Simon Schwitanski
Browse files

Allow MPI_PROC_NULL for RMA tests

parent 9a3bb2f2
No related branches found
No related tags found
1 merge request!23Allow MPI_PROC_NULL for RMA tests
......@@ -10,7 +10,8 @@ from Infrastructure.TemplateFactory import get_invalid_param_rma_case
class InvalidRankErrorRMA(ErrorGenerator):
invalid_ranks = ["-1", "nprocs", "MPI_PROC_NULL"]
invalid_ranks = ["-1", "nprocs"]
correct_ranks = ["MPI_PROC_NULL"]
def __init__(self):
pass
......@@ -33,3 +34,8 @@ class InvalidRankErrorRMA(ErrorGenerator):
tm.set_description("InvalidParam-Rank",
"Invalid Rank: %s" % rank_to_use)
yield tm
for rank_to_use in self.correct_ranks:
tm = get_invalid_param_rma_case("target_rank", func, rank_to_use)
tm.set_description("Correct-Rank",
f"Use of special rank {rank_to_use} in valid communication call")
yield tm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment