Do not log errors on non-existing container
This is cluttering up the logs with useless error messages, making it more difficult than necessary to debug the CI job. Change-Id: Icbdc4c74d99fea39b8722955dab56e5f538849aa
This commit is contained in:
parent
84690023cb
commit
2eddc12be7
@ -61,7 +61,10 @@ def rm_container(name):
|
|||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
cmd_stdout, cmd_stderr = subproc.communicate()
|
cmd_stdout, cmd_stderr = subproc.communicate()
|
||||||
print(cmd_stdout)
|
print(cmd_stdout)
|
||||||
print(cmd_stderr)
|
if cmd_stderr and \
|
||||||
|
cmd_stderr != 'Error response from daemon: ' \
|
||||||
|
'No such container: {}\n'.format(name):
|
||||||
|
print(cmd_stderr)
|
||||||
|
|
||||||
process_count = int(os.environ.get('PROCESS_COUNT',
|
process_count = int(os.environ.get('PROCESS_COUNT',
|
||||||
multiprocessing.cpu_count()))
|
multiprocessing.cpu_count()))
|
||||||
|
Loading…
Reference in New Issue
Block a user