diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2018-09-25 11:07:06 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-26 15:14:33 +0100 |
commit | 5fae3cb56e907da3d0a750e92d1bb77e36c828d6 (patch) | |
tree | 0256d7f5ba4f2952aa91486515da71c957470768 /bitbake/lib/bb | |
parent | 376ed63eb9dd43bdd5a6b562a811b518b0ddf101 (diff) | |
download | poky-5fae3cb56e907da3d0a750e92d1bb77e36c828d6.tar.gz |
bitbake: 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.
(Bitbake rev: 8c222c45148d1f21c2390d66ddd9d3e33b397f05)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/tests/parse.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/parse.py b/bitbake/lib/bb/tests/parse.py index 8f16ba4f4c..1bc47405d9 100644 --- a/bitbake/lib/bb/tests/parse.py +++ b/bitbake/lib/bb/tests/parse.py | |||
@@ -44,9 +44,13 @@ C = "3" | |||
44 | """ | 44 | """ |
45 | 45 | ||
46 | def setUp(self): | 46 | def setUp(self): |
47 | self.origdir = os.getcwd() | ||
47 | self.d = bb.data.init() | 48 | self.d = bb.data.init() |
48 | bb.parse.siggen = bb.siggen.init(self.d) | 49 | bb.parse.siggen = bb.siggen.init(self.d) |
49 | 50 | ||
51 | def tearDown(self): | ||
52 | os.chdir(self.origdir) | ||
53 | |||
50 | def parsehelper(self, content, suffix = ".bb"): | 54 | def parsehelper(self, content, suffix = ".bb"): |
51 | 55 | ||
52 | f = tempfile.NamedTemporaryFile(suffix = suffix) | 56 | f = tempfile.NamedTemporaryFile(suffix = suffix) |