Gentoo Archives: gentoo-dev

From: Davide Pesavento <pesa@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 8/8] virtualx.eclass: Simplify API into single virtx()
Date: Mon, 30 Nov 2015 17:40:44
Message-Id: CADfzvvaiKdC_OF40=aQ6md7JYnn+nLcyr6HfvBQuz4PZtFR=0Q@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH 8/8] virtualx.eclass: Simplify API into single virtx() by "Justin Lecher (jlec)"
1 On Sat, Nov 28, 2015 at 4:50 PM, Justin Lecher (jlec) <jlec@g.o> wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA512
4 >
5 > On 28/11/15 16:28, Davide Pesavento wrote:
6 >>> else - nonfatal ${VIRTUALX_COMMAND} "$@" +
7 >>> nonfatal "$@"
8 >>
9 >> Please take the opportunity to clean this up, possibly only in
10 >> EAPI=6 if you don't want to risk breaking existing ebuilds. See bug
11 >> 517976 for details.
12 >>
13 >>> retval=$?
14 >
15 > The return value is recorded and gets evaluated correctly.
16 >
17 > src_test() {
18 > virtx false
19 > }
20 >
21 [...]
22 >
23 > Am I missing something?
24
25 The scenario of bug 517976 is different. I think a minimized test case
26 is the following (untested):
27
28 foo() {
29 die "meh"
30 return 0
31 }
32
33 src_test() {
34 virtx foo
35 }

Replies