mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Attempt to fix integration.shell.test_call test
This commit is contained in:
parent
659c805218
commit
ed7103ae6c
2 changed files with 6 additions and 5 deletions
|
@ -44,7 +44,7 @@ import salt.minion
|
|||
import salt.payload
|
||||
import salt.syspaths
|
||||
import salt.exceptions
|
||||
import salt.log.setup as log_setup
|
||||
#import salt.log.setup as log_setup
|
||||
import salt.defaults.exitcodes
|
||||
from salt.utils.odict import OrderedDict
|
||||
|
||||
|
@ -660,9 +660,9 @@ class Schedule(object):
|
|||
ret['jid']
|
||||
)
|
||||
|
||||
if multiprocessing_enabled and not salt.utils.platform.is_windows():
|
||||
# Reconfigure multiprocessing logging after daemonizing
|
||||
log_setup.setup_multiprocessing_logging()
|
||||
# if multiprocessing_enabled and not salt.utils.platform.is_windows():
|
||||
# # Reconfigure multiprocessing logging after daemonizing
|
||||
# log_setup.setup_multiprocessing_logging()
|
||||
|
||||
# TODO: Make it readable! Splt to funcs, remove nested try-except-finally sections.
|
||||
try:
|
||||
|
@ -1728,6 +1728,7 @@ class Schedule(object):
|
|||
def cleanup_subprocesses(self):
|
||||
self._subprocess_list.cleanup()
|
||||
|
||||
|
||||
def clean_proc_dir(opts):
|
||||
|
||||
'''
|
||||
|
|
|
@ -433,7 +433,7 @@ class TestProcessList(TestCase):
|
|||
start = time.time()
|
||||
while proc.is_alive():
|
||||
if time.time() - start > timeout:
|
||||
raise TimeoutError("Process did not finishe before timeout")
|
||||
raise Exception("Process did not finishe before timeout")
|
||||
time.sleep(.3)
|
||||
|
||||
def test_process_list_process(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue