Pylint: explicitly note why we're doing an unchecked subprocess.run

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2020-03-24 18:47:53 +01:00
parent 1759602b29
commit e0c84ac4d2

View file

@ -92,6 +92,7 @@ def list_presets(options):
return re.split(r'[ ,]+', options.presets)
else:
help_text = subprocess.run([options.script, '--help'],
check=False, # config.pl --help returns 255
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT).stdout
return guess_presets_from_help(help_text.decode('ascii'))