Copy rotated logs in e2e tests

pull/6/head
Wojciech Tyczynski 2016-09-16 19:12:18 +02:00
parent a665002d80
commit 07476fa658
1 changed files with 4 additions and 2 deletions

View File

@ -37,8 +37,10 @@ function copy-logs-from-node() {
local -r node="${1}"
local -r dir="${2}"
local files=(${3})
# Append ".log"
files=("${files[@]/%/.log}")
# Append ".log*"
# The * at the end is needed to also copy rotated logs (which happens
# in large clusters and long runs).
files=("${files[@]/%/.log*}")
# Prepend "/var/log/"
files=("${files[@]/#/\/var\/log\/}")
# Replace spaces with commas, surround with braces