1 |
commit: fbfb0cc589e7ef8e3d61d4ccf8038356c2b5f2bc |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 30 15:46:09 2012 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 30 23:25:07 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gcc-config.git;a=commit;h=fbfb0cc5 |
7 |
|
8 |
run_test: set RC_NOCOLOR to suppress colours |
9 |
|
10 |
NOCOLOR appears not to work with functions.sh from baselayout-prefix, |
11 |
which is an old copy, prior to 2.0. Not sure if this patch is really |
12 |
worth it, since the output of functions.sh also differs enough to make |
13 |
tests fail. |
14 |
|
15 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
16 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
17 |
|
18 |
--- |
19 |
tests/run_tests | 3 ++- |
20 |
1 files changed, 2 insertions(+), 1 deletions(-) |
21 |
|
22 |
diff --git a/tests/run_tests b/tests/run_tests |
23 |
index 1d35d9f..caca986 100755 |
24 |
--- a/tests/run_tests |
25 |
+++ b/tests/run_tests |
26 |
@@ -18,7 +18,7 @@ if ! . /etc/init.d/functions.sh 2>/dev/null ; then |
27 |
die() { echo "$*"; exit 1; } |
28 |
fi |
29 |
|
30 |
-vars=( CHOST GCC_CONFIG ROOT TROOT NOCOLOR ) |
31 |
+vars=( CHOST GCC_CONFIG ROOT TROOT NOCOLOR RC_NOCOLOR ) |
32 |
unset ${vars[@]} |
33 |
|
34 |
TROOT=${PWD} |
35 |
@@ -29,6 +29,7 @@ fi |
36 |
PATH="${TROOT}/..:${PATH}" |
37 |
|
38 |
NOCOLOR="true" |
39 |
+RC_NOCOLOR="yes" # Older baselayout/openrc versions. |
40 |
# This CHOST value doesn't matter. It could be anything. |
41 |
# As long as all the configs we test are based on this being |
42 |
# the CHOST value. |