diff options
author | 2021-10-31 22:11:13 +0000 | |
---|---|---|
committer | 2021-10-31 22:11:13 +0000 | |
commit | f78714d5cb93f4f88e0dd0ddd592c76dc932c277 (patch) | |
tree | 10d87f09d3533127ccb51041ec4f5cc6aff92f49 | |
parent | packageFinder.py: strip out ~ from 'arch' before passing to nattka (diff) | |
download | tatt-f78714d5cb93f4f88e0dd0ddd592c76dc932c277.tar.gz tatt-f78714d5cb93f4f88e0dd0ddd592c76dc932c277.tar.bz2 tatt-f78714d5cb93f4f88e0dd0ddd592c76dc932c277.zip |
templates/tatt_functions.sh: create logs dir
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | templates/tatt_functions.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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}" |