diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-08-28 23:50:16 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-08-28 23:50:16 -0700 |
commit | 0891a5f671527f99fa1e9ca56ea96e5566abd52f (patch) | |
tree | 10d8dfe2f9f585d9ec91d510049c21e1f39f4b96 /pym/portage/data.py | |
parent | Send "Recording in world" msg to stdout. (diff) | |
download | portage-0891a5f671527f99fa1e9ca56ea96e5566abd52f.tar.gz portage-0891a5f671527f99fa1e9ca56ea96e5566abd52f.tar.bz2 portage-0891a5f671527f99fa1e9ca56ea96e5566abd52f.zip |
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.
Diffstat (limited to 'pym/portage/data.py')
-rw-r--r-- | pym/portage/data.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |