Documented the fact that current kicad2step program never fails.

Well, it fails, but returns 0.
This commit is contained in:
Salvador E. Tropea 2020-06-15 15:17:09 -03:00
parent c2a735e9a6
commit ef64a57697
1 changed files with 3 additions and 1 deletions

View File

@ -639,7 +639,9 @@ class Plotter(object):
logger.debug('Executing: '+str(cmd)) logger.debug('Executing: '+str(cmd))
try: try:
cmd_output = check_output(cmd, stderr=STDOUT) cmd_output = check_output(cmd, stderr=STDOUT)
except CalledProcessError as e: except CalledProcessError as e: # pragma: no cover
# Current kicad2step always returns 0!!!!
# This is why I'm excluding it from coverage
logger.error('Failed to create Step file, error %d', e.returncode) logger.error('Failed to create Step file, error %d', e.returncode)
if e.output: if e.output:
logger.debug('Output from command: '+e.output.decode()) logger.debug('Output from command: '+e.output.decode())