aboutsummaryrefslogtreecommitdiff
path: root/tcwg-compare-results.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2018-05-25 14:35:43 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2018-06-07 07:00:39 +0000
commite7432f8b2740986acb38552fbc7d8c548e2314d6 (patch)
tree797b3c79af13489a7b717c1614f2cbba0a9f50e2 /tcwg-compare-results.yaml
parent7d61605a2d8538f4ad72ef8b7c6bc25cc8063c40 (diff)
tcwg-buildfarm, tcwg-buildfarm-cmp, tcwg-compare-results: Add dryrun parameter.
If set to true, the jobs print what they would do, but do not run time/cpu consuming tasks. Change-Id: Idf114a0b017ec4e686a9003fd9ecdb74b2e3f9fa
Diffstat (limited to 'tcwg-compare-results.yaml')
-rw-r--r--tcwg-compare-results.yaml42
1 files changed, 26 insertions, 16 deletions
diff --git a/tcwg-compare-results.yaml b/tcwg-compare-results.yaml
index 68d63f1d..558f4d58 100644
--- a/tcwg-compare-results.yaml
+++ b/tcwg-compare-results.yaml
@@ -43,6 +43,10 @@
name: cmp_version
default: refs/heads/master
description: 'Comparison scripts version to use'
+ - bool:
+ name: dryrun
+ default: false
+ description: 'Dry-run, do nothing, just print steps'
disabled: false
node: tcwg-x86_64-dev-01-short
retry-count: 3
@@ -82,26 +86,32 @@
trap "ssh ${log_server} rm -rf ${dest}" EXIT HUP INT QUIT TRAP KILL PIPE TERM
- LOGSDIR=${WORKSPACE}/artifacts/logs
+ if ! $dryrun; then
+ LOGSDIR=${WORKSPACE}/artifacts/logs
- mkdir -p ${LOGSDIR}
+ mkdir -p ${LOGSDIR}
- ssh ${log_server} mkdir -p ${dest}
- scp ./compare_jobs.sh \
- ./compare_tests \
- ./compare_dg_tests.pl \
- ./unstable-tests.txt ${log_server}:${dest} || status=1
- ssh ${log_server} bash ${dest}/compare_jobs.sh \
- -pass-thresh ${pass_thresh} \
- $basedir/$ref_logs $basedir/$new_logs ${target_list} || status=1
+ ssh ${log_server} mkdir -p ${dest}
+ scp ./compare_jobs.sh \
+ ./compare_tests \
+ ./compare_dg_tests.pl \
+ ./unstable-tests.txt ${log_server}:${dest} || status=1
+ ssh ${log_server} bash ${dest}/compare_jobs.sh \
+ -pass-thresh ${pass_thresh} \
+ $basedir/$ref_logs $basedir/$new_logs ${target_list} || status=1
- # Copy the generated reports
- scp ${log_server}:${dest}/\*-diff-\*.txt ${LOGSDIR} || true
- scp ${log_server}:${dest}/\*.html report.css ${LOGSDIR} || true
+ # Copy the generated reports
+ scp ${log_server}:${dest}/\*-diff-\*.txt ${LOGSDIR} || true
+ scp ${log_server}:${dest}/\*.html report.css ${LOGSDIR} || true
- # Print results in console
- if $show_results; then
- cat ${LOGSDIR}/*.txt
+ # Print results in console
+ if $show_results; then
+ cat ${LOGSDIR}/*.txt
+ fi
+ else
+ echo DRYRUN: compare_jobs.sh \
+ -pass-thresh ${pass_thresh} \
+ $basedir/$ref_logs $basedir/$new_logs ${target_list}
fi
exit $status