]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/commands: Avoid unclosed file warnings
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Nov 2018 22:43:25 +0000 (22:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2018 10:21:43 +0000 (10:21 +0000)
commitf65a5fbd4fd13a52b54c808a6f5d2afab426e050
treef43dacc20dc0a218b01477450c3b68f3dbe7d886
parentbb2cddb08d7c4c6c56dfe6b2f0d26dce1cdf20e4
oeqa/utils/commands: Avoid unclosed file warnings

Avoid warnings such as:

meta/lib/oeqa/utils/commands.py:213: ResourceWarning: unclosed file <_io.BufferedReader name=4>
  return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)

(From OE-Core rev: 6a68c42de08cffbadb59ebda63fa5e19f6e5acef)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/commands.py