Skip to content

Commit 8b4d562

Browse files
committed
bb.org: bug fix in rpm-upgrade
Environment print should not exit
1 parent c6b7412 commit 8b4d562

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

buildbot.mariadb.org/scripts/rpm-install.sh

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ set -x
1919
# print disk usage
2020
df -kT
2121

22+
# Mandatory variables
23+
for var in arch master_branch; do
24+
if [[ -z $var ]]; then
25+
bb_log_err "$var is not defined"
26+
exit 1
27+
fi
28+
done
29+
2230
# # //TEMP this should be done in the VM preparation
2331
# case "$master_branch" in
2432
# *mdev10416*)

buildbot.mariadb.org/scripts/rpm-upgrade.sh

+2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ bb_log_info " Previous major version $prev_major_version"
4444
bb_log_info "Current test mode: $test_mode"
4545

4646
# Environment
47+
set +e
4748
rpm -qa | grep -iE 'maria|mysql|galera'
4849
cat /etc/*release
4950
uname -a
5051
df -kT
52+
set -e
5153

5254
# Check whether a previous version exists
5355
if ! wget "https://yum.mariadb.org/$prev_major_version/$repo_dist_arch/repodata" -O repodata.list; then

0 commit comments

Comments
 (0)