From 5161a86d03fb95af601b3f9722f936346d9f7ae1 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Thu, 12 Aug 2010 17:31:43 +0200 Subject: [PATCH] Tests: ResolverPlayground: more debug stuff --- pym/portage/tests/resolver/ResolverPlayground.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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): -- 2.26.2