summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tests/parse.py4
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)