1 |
Dnia 11 grudnia 2015 22:03:07 CET, dilfridge@g.o napisał(a): |
2 |
>From: "Andreas K. Huettel (dilfridge)" <dilfridge@g.o> |
3 |
> |
4 |
>--- |
5 |
> eclass/perl-module.eclass | 11 ++++++++++- |
6 |
> 1 file changed, 10 insertions(+), 1 deletion(-) |
7 |
> |
8 |
>diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass |
9 |
>index 0d428d2..4dc39eb 100644 |
10 |
>--- a/eclass/perl-module.eclass |
11 |
>+++ b/eclass/perl-module.eclass |
12 |
>@@ -328,6 +328,14 @@ perl-module_src_compile() { |
13 |
> # DIST_TEST=parallel |
14 |
> # DIST_TEST=skip |
15 |
> |
16 |
>+# @ECLASS-VARIABLE: DIST_TEST_OVERRIDE |
17 |
>+# @DESCRIPTION: |
18 |
>+# (EAPI=6) Variable that controls if tests are run in the test phase |
19 |
>+# at all, and if yes under which conditions. It is intended for use in |
20 |
>+# make.conf or the environment by ebuild authors during testing, and |
21 |
>+# accepts the same values as DIST_TEST. If set, it overrides DIST_TEST |
22 |
>+# completely. DO NOT USE THIS IN EBUILDS! |
23 |
>+ |
24 |
> # @FUNCTION: perl-module_src-test |
25 |
> # @USAGE: perl-module_src_test() |
26 |
> # @DESCRIPTION: |
27 |
>@@ -342,7 +350,8 @@ perl-module_src_test() { |
28 |
> if [[ ${EAPI:-0} = 5 ]] ; then |
29 |
> my_test_control=${SRC_TEST} |
30 |
> else |
31 |
>- my_test_control=${DIST_TEST:-do parallel} |
32 |
>+ [[ -n "${DIST_TEST_OVERRIDE}" ]] && ewarn DIST_TEST_OVERRIDE is set |
33 |
>to ${DIST_TEST_OVERRIDE} |
34 |
>+ my_test_control=${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}} |
35 |
> fi |
36 |
> |
37 |
> if has 'do' ${my_test_control} || has 'parallel' ${my_test_control} ; |
38 |
>then |
39 |
|
40 |
Why that? This seems really redundant to RESTRICT=test. |
41 |
|
42 |
-- |
43 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |