commit: 193584cdead3980505775342f565169511de7f75
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 1 17:59:54 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 1 17:59:54 2024 +0000
URL:
https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=193584cd
tatt: fix template for extra file
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
src/pkgdev/tatt/template.sh.jinja | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/pkgdev/tatt/template.sh.jinja
b/src/pkgdev/tatt/template.sh.jinja
index 5c9d6fb..1606527 100644
--- a/src/pkgdev/tatt/template.sh.jinja
+++ b/src/pkgdev/tatt/template.sh.jinja
@@ -74,13 +74,11 @@ tatt_pkg_error() {
cp "${BUILDLOG}" "${LOGNAME}"
echo " log has been saved as ${LOGNAME}" >> "{{ report_file }}"
TESTLOGS=($(find ${BUILDDIR}/work -iname '*test*log*'))
-{% raw %}
- if [[ ${#TESTLOGS[@]} -gt 0 ]]; then
+ if [[ {{ "${#TESTLOGS[@]}" }} -gt 0 ]]; then
tar cf ${LOGNAME}.tar ${TESTLOGS[@]}
echo " test-suite logs have been saved as ${LOGNAME}.tar" >>
"{{ report_file }}"
fi
fi
-{% endraw %}
}
tatt_test_pkg() {