From 07476fa6583223665279faab0bcfd1f1a90ee505 Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Fri, 16 Sep 2016 19:12:18 +0200 Subject: [PATCH] Copy rotated logs in e2e tests --- cluster/log-dump.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cluster/log-dump.sh b/cluster/log-dump.sh index 6c68581d0fb..ae985236cdc 100755 --- a/cluster/log-dump.sh +++ b/cluster/log-dump.sh @@ -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