aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-08-13 23:19:54 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2018-08-13 23:19:54 +0100
commitc8793a6a74cc9af9ad6ecc85536efb8a7ffc7eff (patch)
tree0ec00c23a2933f593dd7944df33abe3b96c1186a
parenttests/run_tests: switch to /lib/gentoo/functions.sh (diff)
downloadgcc-config-c8793a6a74cc9af9ad6ecc85536efb8a7ffc7eff.tar.gz
gcc-config-c8793a6a74cc9af9ad6ecc85536efb8a7ffc7eff.tar.bz2
gcc-config-c8793a6a74cc9af9ad6ecc85536efb8a7ffc7eff.zip
gcc-config: fix tests (drop einfo for LTO plugin)
Before the change 3 tests failed due to extra output about switching to LTO plugin: * Running rw-multi-native-configs/test.use-old ... due to log difference; see .../TMP-test.use-old-rw-multi-native-configs/test.use-old.log [ !! ] * Running rw-multi-native-configs/test.select-insane ... due to log difference; see .../TMP-test.select-insane-rw-multi-native-configs/test.select-insane.log [ !! ] * Running rw-multi-native-configs/test.select ... due to log difference; see .../TMP-test.select-rw-multi-native-configs/test.select.log [ !! ] Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rwxr-xr-xgcc-config1
-rwxr-xr-xtests/run_tests2
2 files changed, 0 insertions, 3 deletions
diff --git a/gcc-config b/gcc-config
index e42008e..db173f3 100755
--- a/gcc-config
+++ b/gcc-config
@@ -698,7 +698,6 @@ switch_profile() {
else
BFD_PLUGINS_DIR="${EROOT}usr/${CHOST}/binutils-bin/lib/bfd-plugins"
fi
- einfo "Updating LTO plugin symlink in ${BFD_PLUGINS_DIR}"
mkdir -p "${BFD_PLUGINS_DIR}"
ln -sf "${LIBLTO_PLUGIN}" "${BFD_PLUGINS_DIR}"
diff --git a/tests/run_tests b/tests/run_tests
index 9ba34a0..19fbe7b 100755
--- a/tests/run_tests
+++ b/tests/run_tests
@@ -3,7 +3,6 @@
# Avoid bash localization of error messages
export LC_ALL=C
-. /lib/gentoo/functions.sh 2>/dev/null
ebegin() { printf '%s*%s %s ... ' "${GOOD}" "${NORMAL}" "$*" ; }
eend() {
local r=${1:-0}
@@ -16,7 +15,6 @@ eend() {
return $r
}
die() { echo "$*" 1>&2; exit 1; }
-eval $(eval_ecolors 2>/dev/null)
vars=( CHOST GCC_CONFIG ROOT TROOT NOCOLOR RC_NOCOLOR )
unset ${vars[@]}