commit: f78714d5cb93f4f88e0dd0ddd592c76dc932c277
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 31 22:11:13 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 31 22:11:13 2021 +0000
URL: https://gitweb.gentoo.org/proj/tatt.git/commit/?id=f78714d5
templates/tatt_functions.sh: create logs dir
Signed-off-by: Sam James <sam <AT> gentoo.org>
templates/tatt_functions.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/templates/tatt_functions.sh b/templates/tatt_functions.sh
index d4e7cdf..a672caf 100644
--- a/templates/tatt_functions.sh
+++ b/templates/tatt_functions.sh
@@ -31,6 +31,7 @@ function tatt_pkg_error
BUILDDIR=/var/tmp/portage/${CP}
BUILDLOG=${BUILDDIR}/temp/build.log
if [[ -n "${TATT_BUILDLOGDIR}" && -s "${BUILDLOG}" ]]; then
+ mkdir -p "${TATT_BUILDLOGDIR}"
LOGNAME=$(mktemp -p "${TATT_BUILDLOGDIR}"
"${CP/\//_}_${TATT_TEST_TYPE}_XXXXX")
mv "${BUILDLOG}" "${LOGNAME}"
echo " log has been saved as ${LOGNAME}" >> "${TATT_REPORTFILE}"