mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2018.3' into git.cloned
This commit is contained in:
commit
b596a945ea
7 changed files with 14 additions and 9 deletions
|
@ -31,7 +31,6 @@ pipeline {
|
|||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
@ -41,12 +40,14 @@ pipeline {
|
|||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'artifacts/xml-unittests-output/*.xml'
|
||||
cleanWs()
|
||||
}
|
||||
success {
|
||||
|
|
|
@ -31,7 +31,6 @@ pipeline {
|
|||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
@ -41,12 +40,14 @@ pipeline {
|
|||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'artifacts/xml-unittests-output/*.xml'
|
||||
cleanWs()
|
||||
}
|
||||
success {
|
||||
|
|
|
@ -31,7 +31,6 @@ pipeline {
|
|||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
@ -41,12 +40,14 @@ pipeline {
|
|||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'artifacts/xml-unittests-output/*.xml'
|
||||
cleanWs()
|
||||
}
|
||||
success {
|
||||
|
|
|
@ -31,7 +31,6 @@ pipeline {
|
|||
sh 'bundle exec kitchen verify $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
@ -41,12 +40,14 @@ pipeline {
|
|||
sh 'bundle exec kitchen destroy $TEST_SUITE-$TEST_PLATFORM'
|
||||
}
|
||||
}}
|
||||
archiveArtifacts artifacts: 'artifacts/xml-unittests-output/*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
junit 'artifacts/xml-unittests-output/*.xml'
|
||||
cleanWs()
|
||||
}
|
||||
success {
|
||||
|
|
|
@ -11,6 +11,7 @@ import time
|
|||
|
||||
# Import salt libs
|
||||
import salt.utils.path
|
||||
import salt.utils.stringutils
|
||||
import salt.utils.vt
|
||||
|
||||
__virtualname__ = 'sh'
|
||||
|
@ -81,14 +82,14 @@ def beacon(config):
|
|||
stream_stdout=False,
|
||||
stream_stderr=False)
|
||||
__context__[pkey][pid]['user'] = ps_out[pid].get('user')
|
||||
for pid in __context__[pkey]:
|
||||
for pid in list(__context__[pkey]):
|
||||
out = ''
|
||||
err = ''
|
||||
while __context__[pkey][pid]['vt'].has_unread_data:
|
||||
tout, terr = __context__[pkey][pid]['vt'].recv()
|
||||
if not terr:
|
||||
break
|
||||
out += tout
|
||||
out += salt.utils.stringutils.to_unicode(tout or '')
|
||||
err += terr
|
||||
for line in err.split('\n'):
|
||||
event = {'args': [],
|
||||
|
|
|
@ -959,7 +959,7 @@ def alter_db(name, character_set=None, collate=None, **connection_args):
|
|||
return []
|
||||
cur = dbc.cursor()
|
||||
existing = db_get(name, **connection_args)
|
||||
qry = 'ALTER DATABASE {0} CHARACTER SET {1} COLLATE {2};'.format(
|
||||
qry = 'ALTER DATABASE `{0}` CHARACTER SET {1} COLLATE {2};'.format(
|
||||
name.replace('%', r'\%').replace('_', r'\_'),
|
||||
character_set or existing.get('character_set'),
|
||||
collate or existing.get('collate'))
|
||||
|
|
4
tox.ini
4
tox.ini
|
@ -14,7 +14,7 @@ basepython = python2.7
|
|||
deps = -r{toxinidir}/requirements/dev.txt
|
||||
commands =
|
||||
pylint --version
|
||||
pylint --rcfile=.testing.pylintrc --disable=W1307,str-format-in-logging setup.py salt/
|
||||
pylint --rcfile=.testing.pylintrc --disable=W1307,str-format-in-logging {posargs:setup.py salt/}
|
||||
sitepackages = False
|
||||
|
||||
[testenv:pylint-tests]
|
||||
|
@ -22,7 +22,7 @@ basepython = python2.7
|
|||
deps = -r{toxinidir}/requirements/dev.txt
|
||||
commands =
|
||||
pylint --version
|
||||
pylint --rcfile=.testing.pylintrc --disable=W1307,str-format-in-logging setup.py salt/
|
||||
pylint --rcfile=.testing.pylintrc --disable=W1307,str-format-in-logging {posargs:tests/}
|
||||
sitepackages = False
|
||||
|
||||
[pytest]
|
||||
|
|
Loading…
Add table
Reference in a new issue