From e0b5b8901c07ac7883f0487c54b03e80b640e3d6 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Mon, 21 Jan 2019 15:58:22 +0000 Subject: tcwg_kernel-bisect.sh: Avoid absolute paths in manifests ... and their use in reproduction instructions. Also - download build-parameter.sh in instructions that test.sh relies on - use curl instead of wget in instuctions - limit commit output to 1000 lines in the email body. Change-Id: Ib3b0cb94134a588e3a8c72fd7261b70d83935450 --- jenkins-helpers.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'jenkins-helpers.sh') diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh index b4b1b112..10b7081a 100644 --- a/jenkins-helpers.sh +++ b/jenkins-helpers.sh @@ -35,8 +35,8 @@ fresh_dir () break fi # This assert will trigger if one of keep_patterns doesn't start - # with "$dir". - assert [ "$keep_pattern" != "." ] + # with "$dir": eventually dirname will get to either "/" or ".". + assert [ "$keep_pattern" != "/" -a "$keep_pattern" != "." ] done done @@ -1040,6 +1040,11 @@ run_step_init () run_step_use_baseline=false fi + # We need absolute paths for $run_step_artifacts, which is constructed from + # $run_step_top_artifacts. + mkdir -p "$run_step_top_artifacts" + run_step_top_artifacts=$(cd "$run_step_top_artifacts"; pwd) + rm -f $run_step_top_artifacts/console.log rm -f $run_step_top_artifacts/results } -- cgit v1.2.3