From: Sebastian Luther Date: Thu, 12 Aug 2010 15:31:43 +0000 (+0200) Subject: Tests: ResolverPlayground: more debug stuff X-Git-Tag: v2.2_rc68~257 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5161a86d03fb95af601b3f9722f936346d9f7ae1;p=portage.git Tests: ResolverPlayground: more debug stuff --- diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py index 9440378c7..effeb41f7 100644 --- a/pym/portage/tests/resolver/ResolverPlayground.py +++ b/pym/portage/tests/resolver/ResolverPlayground.py @@ -233,6 +233,8 @@ class ResolverPlayground(object): options["--root"] = self.root options["--config-root"] = self.root options["--root-deps"] = "rdeps" + if self.debug: + options["--debug"] = True # Add a fake _test_ option that can be used for # conditional test code. options["_test_"] = True @@ -257,7 +259,10 @@ class ResolverPlayground(object): return def cleanup(self): - shutil.rmtree(self.root) + if self.debug: + print("\nROOT=%s" % self.root) + else: + shutil.rmtree(self.root) class ResolverPlaygroundTestCase(object):