mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use "test.versions" instead of "-g" (pid in grains changes).
integration.shell.call.test_issue_15074_output_file_append test just needs any output that is repeatable. Previously it used the grains output ("-g" argument). Unfortunately grains now includes the PID which changes for each invocation of "salt-call" and is therefore not predictably comparable. Use "test.versions" that should have constant output across multiple invocations.
This commit is contained in:
parent
ab09d08c99
commit
3bedbb713b
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
# Let's create an initial output file with some data
|
||||
ret = self.run_script(
|
||||
'salt-call',
|
||||
'-c {0} --output-file={1} -g'.format(
|
||||
'-c {0} --output-file={1} test.versions'.format(
|
||||
self.get_config_dir(),
|
||||
output_file_append
|
||||
),
|
||||
|
@ -320,7 +320,7 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
|
|||
|
||||
self.run_script(
|
||||
'salt-call',
|
||||
'-c {0} --output-file={1} --output-file-append -g'.format(
|
||||
'-c {0} --output-file={1} --output-file-append test.versions'.format(
|
||||
self.get_config_dir(),
|
||||
output_file_append
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue