aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/entry/tox.sh
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2021-07-12 16:53:50 +0200
committerVratko Polak <vrpolak@cisco.com>2021-07-12 16:53:50 +0200
commit8f9290d1594d35eb838c0c4c9d754b80a35e4a3a (patch)
treed0d656bb479f8b7ad4a184fffd03864636b7c441 /resources/libraries/bash/entry/tox.sh
parent7692bfcfbe9d93a24a3840472fbaccabbefe747c (diff)
Tox: Move logs to archive also on -1
Change-Id: Id29925da9c8e0bc0a28a9f4d38c332852c687317 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/bash/entry/tox.sh')
-rwxr-xr-xresources/libraries/bash/entry/tox.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/resources/libraries/bash/entry/tox.sh b/resources/libraries/bash/entry/tox.sh
index 9edd6607d6..22dfdfe05f 100755
--- a/resources/libraries/bash/entry/tox.sh
+++ b/resources/libraries/bash/entry/tox.sh
@@ -29,11 +29,12 @@ source "${BASH_FUNCTION_DIR}/common.sh" || {
common_dirs || die
cd "${CSIT_DIR}" || die
activate_virtualenv "${CSIT_DIR}" "${CSIT_DIR}/tox-requirements.txt" || die
+set +e
# Verbosity is increased so console output shows any unwanted downloads.
-tox -vv # Return code is turned into Jenkins job vote.
+tox -vv
TOX_EXIT_STATUS="$?"
-
+set -e
mkdir -p "${CSIT_DIR}/archives" || die
mv *.log "${CSIT_DIR}/archives" || die
-exit "${TOX_EXIT_STATUS}" \ No newline at end of file
+exit "${TOX_EXIT_STATUS}"