Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/tatt:master commit in: templates/
Date: Sun, 31 Oct 2021 22:11:56
Message-Id: 1635718273.f78714d5cb93f4f88e0dd0ddd592c76dc932c277.sam@gentoo
1 commit: f78714d5cb93f4f88e0dd0ddd592c76dc932c277
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 22:11:13 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 22:11:13 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/tatt.git/commit/?id=f78714d5
7
8 templates/tatt_functions.sh: create logs dir
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 templates/tatt_functions.sh | 1 +
13 1 file changed, 1 insertion(+)
14
15 diff --git a/templates/tatt_functions.sh b/templates/tatt_functions.sh
16 index d4e7cdf..a672caf 100644
17 --- a/templates/tatt_functions.sh
18 +++ b/templates/tatt_functions.sh
19 @@ -31,6 +31,7 @@ function tatt_pkg_error
20 BUILDDIR=/var/tmp/portage/${CP}
21 BUILDLOG=${BUILDDIR}/temp/build.log
22 if [[ -n "${TATT_BUILDLOGDIR}" && -s "${BUILDLOG}" ]]; then
23 + mkdir -p "${TATT_BUILDLOGDIR}"
24 LOGNAME=$(mktemp -p "${TATT_BUILDLOGDIR}" "${CP/\//_}_${TATT_TEST_TYPE}_XXXXX")
25 mv "${BUILDLOG}" "${LOGNAME}"
26 echo " log has been saved as ${LOGNAME}" >> "${TATT_REPORTFILE}"