mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Pass timeout to salt CLI for tests
This should hopefully fix up the race condition in the long-running jobs test.
This commit is contained in:
parent
0d9d55e013
commit
85025af83c
@ -121,7 +121,7 @@ class ShellTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||
data = '\n'.join(data)
|
||||
self.assertIn('minion', data)
|
||||
'''
|
||||
arg_str = '-c {0} {1}'.format(self.get_config_dir(), arg_str)
|
||||
arg_str = '-c {0} -t {1} {2}'.format(self.get_config_dir(), timeout, arg_str)
|
||||
return self.run_script('salt', arg_str, with_retcode=with_retcode, catch_stderr=catch_stderr, timeout=timeout)
|
||||
|
||||
def run_ssh(self, arg_str, with_retcode=False, timeout=25,
|
||||
|
Loading…
Reference in New Issue
Block a user