From 0891a5f671527f99fa1e9ca56ea96e5566abd52f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 28 Aug 2011 23:50:16 -0700 Subject: emerge: add simple unit tests These tests are similar to the repoman tests, using a __PORTAGE_TEST_EPREFIX environment variable to make emerge confine itself to a testing prefix so that things like install and uninstall operations can be performed. --- pym/portage/data.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pym/portage/data.py') diff --git a/pym/portage/data.py b/pym/portage/data.py index c38fa17bc..c496c0b92 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -65,6 +65,9 @@ wheelgid=0 if uid==0: secpass=2 +elif "__PORTAGE_TEST_EPREFIX" in os.environ: + secpass = 2 + try: wheelgid=grp.getgrnam("wheel")[2] except KeyError: -- cgit v1.2.3-1-g7c22