X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Fentry%2Ftox.sh;h=9edd6607d6710dc777adaf25cd77d7a53f57bbef;hp=82b7ef530713f9d84eaae3bc54d4cdb23555658c;hb=88483ff0a6b4b5ff5b0390d8ff2adeb9a857c1c3;hpb=694b418272e9d7670ac69d477ed731bb7445b65a diff --git a/resources/libraries/bash/entry/tox.sh b/resources/libraries/bash/entry/tox.sh index 82b7ef5307..9edd6607d6 100755 --- a/resources/libraries/bash/entry/tox.sh +++ b/resources/libraries/bash/entry/tox.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -29,4 +29,11 @@ source "${BASH_FUNCTION_DIR}/common.sh" || { common_dirs || die cd "${CSIT_DIR}" || die activate_virtualenv "${CSIT_DIR}" "${CSIT_DIR}/tox-requirements.txt" || die -tox # Return code is turned into Jenkins job vote. +# Verbosity is increased so console output shows any unwanted downloads. +tox -vv # Return code is turned into Jenkins job vote. +TOX_EXIT_STATUS="$?" + +mkdir -p "${CSIT_DIR}/archives" || die +mv *.log "${CSIT_DIR}/archives" || die + +exit "${TOX_EXIT_STATUS}" \ No newline at end of file