Merge "python3: fix log index for test case messages"

This commit is contained in:
Jenkins 2017-06-02 23:14:14 +00:00 committed by Gerrit Code Review
commit 608759da32
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,19 @@ function generate_log_index {
xtrace=$(set +o | grep xtrace)
set +o xtrace
# honor job flavors like -python35
case $venv in
*"dsvm-fullstack"*)
venv="dsvm-fullstack"
;;
*"dsvm-functional"*)
venv="dsvm-functional"
;;
*)
echo "Unrecognized environment $venv".
exit 1
esac
virtualenv /tmp/os-log-merger
/tmp/os-log-merger/bin/pip install -U os-log-merger==1.1.0
files=$(find /opt/stack/logs/$venv-logs -name '*.txt' -o -name '*.log')