From b3334e58e24ea4ade3088c620dec315e62042754 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Wed, 13 May 2020 14:27:20 +0100 Subject: tcwg_bmk/round-robin: Add assert_with_msg function This acts like assert but prints a message if the assert fails. This will be visible in the Jenkins logs and give us a unique string to look for in the abscence of traceback for shell scripts. Two instances of returning false in check_regression have had echos added to them, instead of asserts. This is because they are not hard failures, and may be handled by the caller. (run_step) I have only converted the tcwg-bmk relevant scripts to assert_with_msg so far, as a proof of concept. Change-Id: I3b1badf09e4856c80b973ca8b23088626ed66b0a --- round-robin-bisect.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'round-robin-bisect.sh') diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh index 46bed870..dde6e8db 100755 --- a/round-robin-bisect.sh +++ b/round-robin-bisect.sh @@ -196,7 +196,8 @@ if [ x"$res" = x"0" ]; then if $rebase_workaround; then echo "Rebase workaround: no regression between $baseline_rev and $bad_rev" sed -i -e "s/\$/-bad_rev-good/" $artifacts/jenkins/build-name - case "${rr[ci_project]}/${rr[ci_config]}:$current_project" in + project_name="${rr[ci_project]}/${rr[ci_config]}:$current_project" + case $project_name in tcwg_kernel/llvm-*-next-*:linux) cat > $artifacts/trigger-build-rebase <> $artifacts/trigger-build-rebase <