[oe-commits] [bitbake] 02/04: lib/bb/tests/parse.py: Test case was changing chdir
git at git.openembedded.org
git at git.openembedded.org
Tue Sep 25 22:23:56 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 8c222c45148d1f21c2390d66ddd9d3e33b397f05
Author: Mark Hatle <mark.hatle at windriver.com>
AuthorDate: Tue Sep 25 11:07:06 2018 -0400
lib/bb/tests/parse.py: Test case was changing chdir
The test case was changing the current directory, but was never restoring it
to the original location. This causes occasional failures in later test cases.
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/tests/parse.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/bb/tests/parse.py b/lib/bb/tests/parse.py
index 8f16ba4..1bc4740 100644
--- a/lib/bb/tests/parse.py
+++ b/lib/bb/tests/parse.py
@@ -44,9 +44,13 @@ C = "3"
"""
def setUp(self):
+ self.origdir = os.getcwd()
self.d = bb.data.init()
bb.parse.siggen = bb.siggen.init(self.d)
+ def tearDown(self):
+ os.chdir(self.origdir)
+
def parsehelper(self, content, suffix = ".bb"):
f = tempfile.NamedTemporaryFile(suffix = suffix)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list