diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-08-05 15:48:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-03 23:45:54 +0100 |
commit | e616beba1c85e31246d1c798191b194d168b3489 (patch) | |
tree | 5b9d19e7c4a7caeb72f1bb9da4a2b221cfb1da96 /scripts/contrib/verify-homepage.py | |
parent | f2854c67ce963211f27223bd1194420621694bc2 (diff) | |
download | poky-e616beba1c85e31246d1c798191b194d168b3489.tar.gz |
scripts: ensure tinfoil is shut down correctly
We should always shut down tinfoil when we're finished with it, either
by explicitly calling the shutdown() method or by using it as a
context manager ("with ...").
(From OE-Core rev: 5ec6d9ef309b841cdcbf1d14ac678d106d5d888a)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/verify-homepage.py')
-rwxr-xr-x | scripts/contrib/verify-homepage.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/contrib/verify-homepage.py b/scripts/contrib/verify-homepage.py index 0b1450a018..d39dd1d973 100755 --- a/scripts/contrib/verify-homepage.py +++ b/scripts/contrib/verify-homepage.py | |||
@@ -54,9 +54,9 @@ def verifyHomepage(bbhandler): | |||
54 | return count | 54 | return count |
55 | 55 | ||
56 | if __name__=='__main__': | 56 | if __name__=='__main__': |
57 | bbhandler = bb.tinfoil.Tinfoil() | 57 | with bb.tinfoil.Tinfoil() as bbhandler: |
58 | bbhandler.prepare() | 58 | bbhandler.prepare() |
59 | logger.info("Start verifying HOMEPAGE:") | 59 | logger.info("Start verifying HOMEPAGE:") |
60 | failcount = verifyHomepage(bbhandler) | 60 | failcount = verifyHomepage(bbhandler) |
61 | logger.info("Finished verifying HOMEPAGE.") | 61 | logger.info("Finished verifying HOMEPAGE.") |
62 | logger.info("Summary: %s failed" % failcount) | 62 | logger.info("Summary: %s failed" % failcount) |