mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Sort list of minions in batch to make tests consistent
This commit is contained in:
parent
39a6392fa2
commit
3923305141
@ -166,7 +166,7 @@ class Batch(object):
|
||||
|
||||
if next_:
|
||||
if not self.quiet:
|
||||
print_cli('\nExecuting run on {0}\n'.format(next_))
|
||||
print_cli('\nExecuting run on {0}\n'.format(sorted(next_)))
|
||||
# create a new iterator for this batch of minions
|
||||
new_iter = self.local.cmd_iter_no_block(
|
||||
*args,
|
||||
|
@ -27,7 +27,7 @@ class BatchTest(integration.ShellCase):
|
||||
Tests executing a simple batch command using a number division instead of
|
||||
a percentage with full batch CLI call.
|
||||
'''
|
||||
ret = "Executing run on ['sub_minion', 'minion']"
|
||||
ret = "Executing run on ['minion', 'sub_minion']"
|
||||
cmd = self.run_salt('\'*\' test.ping --batch-size 2')
|
||||
self.assertIn(ret, cmd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user