commands: add a stderr redirection

Change-Id: I9383ea00e1c5099daccbca093aa5c17d0834ebac
This commit is contained in:
Gauvain Pocentek 2015-11-09 08:24:32 +01:00
parent 9925ca9cf8
commit 9ab08e33ca
1 changed files with 2 additions and 1 deletions

View File

@ -526,7 +526,8 @@ def discover_subcommands(os_command, subcommands, extra_params):
for line in [x.strip() for x in
subprocess.check_output(
args,
universal_newlines=True).split('\n')
universal_newlines=True,
stderr=DEVNULL).split('\n')
if x.strip().startswith('cmds_') and '-' in x]:
subcommand, _ = line.split('=')
subcommand = subcommand.replace('cmds_', '').replace('_', ' ')