Skip to content

Commit

Permalink
Merge pull request #18758 from Martchus/coding-style
Browse files Browse the repository at this point in the history
Use more compact coding style in `setup_multimachine` module
  • Loading branch information
Martchus authored Feb 28, 2024
2 parents 8be5bc0 + 56cb57d commit 86ff8ad
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/network/setup_multimachine.pm
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ sub run {
disable_and_stop_service('apparmor', ignore_failure => 1);

# Configure the internal network an try it
if ($is_server) {
setup_static_mm_network('10.0.2.101/24');
} else {
setup_static_mm_network('10.0.2.102/24');
}
setup_static_mm_network($is_server ? '10.0.2.101/24' : '10.0.2.102/24');

# Set the hostname to identify both minions
set_hostname $hostname;
Expand All @@ -54,9 +50,7 @@ sub run {
permit_root_ssh();

barrier_wait 'MM_SETUP_DONE';
if (!$is_server) {
ping_size_check('server');
}
ping_size_check('server') unless $is_server;
barrier_wait 'MM_SETUP_PING_CHECK_DONE';
}

Expand Down

0 comments on commit 86ff8ad

Please sign in to comment.