Skip to content

Commit

Permalink
bb.org: bug fix in rpm-upgrade
Browse files Browse the repository at this point in the history
Environment print should not exit
  • Loading branch information
fauust committed Apr 27, 2022
1 parent c6b7412 commit 8b4d562
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions buildbot.mariadb.org/scripts/rpm-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ set -x
# print disk usage
df -kT

# Mandatory variables
for var in arch master_branch; do
if [[ -z $var ]]; then
bb_log_err "$var is not defined"
exit 1
fi
done

# # //TEMP this should be done in the VM preparation
# case "$master_branch" in
# *mdev10416*)
Expand Down
2 changes: 2 additions & 0 deletions buildbot.mariadb.org/scripts/rpm-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ bb_log_info " Previous major version $prev_major_version"
bb_log_info "Current test mode: $test_mode"

# Environment
set +e
rpm -qa | grep -iE 'maria|mysql|galera'
cat /etc/*release
uname -a
df -kT
set -e

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

0 comments on commit 8b4d562

Please sign in to comment.