From 35a1e0ff46962b2868619965eddf4c294004bcfa Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Wed, 12 Jul 2017 11:42:10 +0000 Subject: tcwg-benchmark-results.sh: Add results_ref parameter. Instead of hardcoding "1" as reference. Change-Id: I57efe5c3203b242f556c09d310d85c1124175fb1 --- tcwg-benchmark-results.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcwg-benchmark-results.sh') diff --git a/tcwg-benchmark-results.sh b/tcwg-benchmark-results.sh index 03823a05..d9e23ad8 100755 --- a/tcwg-benchmark-results.sh +++ b/tcwg-benchmark-results.sh @@ -7,6 +7,7 @@ set -ex # Make shellcheck happy and workaround Jenkins not defining variables # for empty arguments. results_id="$results_id" +results_ref="$results_ref" # Jenkins doesn't define variables when parameter value is empty (like cflags), # so enable "set -u" only after above binding of variables. @@ -15,7 +16,7 @@ set -u results_top="dev-01.tcwglab:/home/tcwg-benchmark/results" rsync -az --delete "$results_top-$results_id/" results/ -rsync -az --delete "$results_top-$(dirname $results_id)/1/" baseline/ +rsync -az --delete "$results_top-$results_ref/" baseline/ for i in baseline results; do bmk-scripts/perfdatadir2csv.sh --buildid-dir local -t --num 0 --format sample --results-dir "$i/" > "time-$i.csv" -- cgit v1.2.3