Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] Re: [PATCH] TestFakedbapi: override EPREFIX for bug #492932
Date: Sat, 17 Jan 2015 19:16:16
Message-Id: 54BAB4FA.5050502@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] TestFakedbapi: override EPREFIX for bug #492932 by Zac Medico
1 On 12/20/2014 01:11 PM, Zac Medico wrote:
2 > For tests, override portage.const.EPREFIX in order to avoid unwanted
3 > access to /etc/portage. This override may seem evil, but it is a
4 > convenient way to simulate a prefix install, and it is reasonable to do
5 > this because tests should be self-contained such that the "real" value
6 > of portage.const.EPREFIX is entirely irrelevant.
7
8 Any feedback on this? I think it's good to merge.
9
10 I know it's ugly, but it's simple and it works. Maybe we'll come up with
11 something fancier later on.
12 --
13 Thanks,
14 Zac

Replies