diff options
Diffstat (limited to 'bitbake/lib/bb')
| -rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 272078f2b3..e8c416afd0 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
| @@ -360,7 +360,10 @@ class FetcherTest(unittest.TestCase): | |||
| 360 | 360 | ||
| 361 | def tearDown(self): | 361 | def tearDown(self): |
| 362 | os.chdir(self.origdir) | 362 | os.chdir(self.origdir) |
| 363 | bb.utils.prunedir(self.tempdir) | 363 | if os.environ.get("BB_TMPDIR_NOCLEAN") == "yes": |
| 364 | print("Not cleaning up %s. Please remove manually." % self.tempdir) | ||
| 365 | else: | ||
| 366 | bb.utils.prunedir(self.tempdir) | ||
| 364 | 367 | ||
| 365 | class MirrorUriTest(FetcherTest): | 368 | class MirrorUriTest(FetcherTest): |
| 366 | 369 | ||
