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:
parent
1759602b29
commit
e0c84ac4d2
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ def list_presets(options):
|
||||||
return re.split(r'[ ,]+', options.presets)
|
return re.split(r'[ ,]+', options.presets)
|
||||||
else:
|
else:
|
||||||
help_text = subprocess.run([options.script, '--help'],
|
help_text = subprocess.run([options.script, '--help'],
|
||||||
|
check=False, # config.pl --help returns 255
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT).stdout
|
stderr=subprocess.STDOUT).stdout
|
||||||
return guess_presets_from_help(help_text.decode('ascii'))
|
return guess_presets_from_help(help_text.decode('ascii'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue