Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix: testpmd and l3fwd check state
[csit.git]
/
resources
/
libraries
/
bash
/
entry
/
tox.sh
diff --git
a/resources/libraries/bash/entry/tox.sh
b/resources/libraries/bash/entry/tox.sh
index
82b7ef5
..
22dfdfe
100755
(executable)
--- a/
resources/libraries/bash/entry/tox.sh
+++ b/
resources/libraries/bash/entry/tox.sh
@@
-1,6
+1,6
@@
#!/usr/bin/env bash
#!/usr/bin/env bash
-# Copyright (c) 20
19
Cisco and/or its affiliates.
+# Copyright (c) 20
21
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:
# 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,12
@@
source "${BASH_FUNCTION_DIR}/common.sh" || {
common_dirs || die
cd "${CSIT_DIR}" || die
activate_virtualenv "${CSIT_DIR}" "${CSIT_DIR}/tox-requirements.txt" || die
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.
+set +e
+# Verbosity is increased so console output shows any unwanted downloads.
+tox -vv
+TOX_EXIT_STATUS="$?"
+set -e
+mkdir -p "${CSIT_DIR}/archives" || die
+mv *.log "${CSIT_DIR}/archives" || die
+
+exit "${TOX_EXIT_STATUS}"