Skip to content

Commit

Permalink
Rebase for VROOM-22506.
Browse files Browse the repository at this point in the history
Signed-off-by: nsednev <[email protected]>
  • Loading branch information
nsednev committed Sep 5, 2024
1 parent 64fc09a commit e3447d1
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions tests/e2e/set-ffi-env-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -261,22 +261,20 @@ fi
echo
info_message "Checking if QM already installed"
info_message "=============================="
QM_STATUS="$(systemctl is-enabled qm 2>&1)"
if [ "$QM_STATUS" == "generated" ]; then
if [ "$(systemctl is-active qm)" == "active" ]; then
# Restart QM after mount /var on separate partition
if grep -qi "${QC_SOC}" "${SOC_DISTRO_FILE}"; then
systemctl restart qm
fi
info_message "QM Enabled and Active"
info_message "=============================="
exit 0
fi
if test -d /var/qm -a -d /etc/qm ; then
info_message "QM Enabled and not Active"
info_message "=============================="
exit 1
fi
if rpm -q qm &>/dev/null; then
QM_STATUS="$(systemctl is-enabled qm 2>&1)"
if [ "$QM_STATUS" == "generated" ]; then
if [ "$(systemctl is-active qm)" == "active" ]; then
info_message "QM Enabled and Active"
info_message "=============================="
exit 0
fi
if test -d /var/qm -a -d /etc/qm ; then
info_message "QM Enabled and not Active"
info_message "=============================="
exit 1
fi
fi
fi

info_message "Cleaning any previous e2e files"
Expand Down

0 comments on commit e3447d1

Please sign in to comment.