Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qa-scripts:master commit in: tinderbox/
Date: Thu, 28 Aug 2014 18:30:56
Message-Id: 1409250636.08cf4285e90a4521340ba1714ee0c0f80176de71.zerochaos@gentoo
1 commit: 08cf4285e90a4521340ba1714ee0c0f80176de71
2 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 28 18:30:36 2014 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 28 18:30:36 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=08cf4285
7
8 proper fix for empty logging dir
9
10 revert 6f206114aa3b978fc7206cd2d329114db461ea55, proper fix is to just
11 use recursive grep.
12
13 ---
14 tinderbox/bashrc | 6 ++----
15 1 file changed, 2 insertions(+), 4 deletions(-)
16
17 diff --git a/tinderbox/bashrc b/tinderbox/bashrc
18 index 6d21868..b378dac 100644
19 --- a/tinderbox/bashrc
20 +++ b/tinderbox/bashrc
21 @@ -108,11 +108,9 @@ tinderbox_postinst_checks() {
22
23 SANDBOX_ON=0 cp "${T}"/testsfailed "${BUILD_DATA_DIR}" 2> /dev/null
24 SANDBOX_ON=0 find "${T}" -name "tinderbox-*.log" -not -empty -execdir mv '{}' "${BUILD_DATA_DIR}" \;
25 - if [ ls "${T}"/logging/* > /dev/null 2>&1 ] ; then
26 - SANDBOX_ON=0 grep --no-filename QA "${T}"/logging/* > "${BUILD_DATA_DIR}"/portageqa
27 - fi
28 + SANDBOX_ON=0 grep --no-filename -r QA "${T}"/logging/ > "${BUILD_DATA_DIR}"/portageqa
29
30 - if [[ ! -s "${BUILD_DATA_DIR}"/portageqa ]] && [ -f "${BUILD_DATA_DIR}"/portageqa ] ; then
31 + if [[ ! -s "${BUILD_DATA_DIR}"/portageqa ]] ; then
32 SANDBOX_ON=0 rm "${BUILD_DATA_DIR}"/portageqa
33 fi