Skip to content

Commit

Permalink
Merge pull request #214 from dash-project/bug-61-teamsplit
Browse files Browse the repository at this point in the history
run teamsplit test only if all units share the same node
  • Loading branch information
devreal authored Dec 21, 2016
2 parents 71d57b7 + 12811b4 commit fac890b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dash/test/TeamTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ TEST_F(TeamTest, SplitTeamSync)
SKIP_TEST_MSG("team is already splitted. Skip test");
}

// Check if all units are on the same node
dash::util::TeamLocality tloc(dash::Team::All());
if(tloc.num_nodes() > 1){
SKIP_TEST_MSG("test supports only 1 node");
}

LOG_MESSAGE("team_all contains %d units", team_all.size());

auto & team_core = team_all.split(2);
Expand Down

0 comments on commit fac890b

Please sign in to comment.