mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add some color when a test minion connects(trigger a Travis build).
This commit is contained in:
parent
e4f28d1db8
commit
74aeeab5e5
1 changed files with 6 additions and 1 deletions
|
@ -380,6 +380,7 @@ class TestDaemon(object):
|
|||
)
|
||||
targets = set(['minion', 'sub_minion'])
|
||||
expected_connections = set(targets)
|
||||
|
||||
while True:
|
||||
# If enough time passes, a timeout will be triggered by
|
||||
# multiprocessing.Event, so, we can have this while True here
|
||||
|
@ -389,7 +390,11 @@ class TestDaemon(object):
|
|||
# Someone(minion) else "listening"?
|
||||
continue
|
||||
expected_connections.remove(target)
|
||||
print(' * {0} minion connected'.format(target))
|
||||
print(
|
||||
' {LIGHT_GREEN}*{ENDC} {0} connected.\n'.format(
|
||||
target, **self.colors
|
||||
)
|
||||
)
|
||||
if not expected_connections:
|
||||
# All expected connections have connected
|
||||
break
|
||||
|
|
Loading…
Add table
Reference in a new issue