Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase for Check if QM is installed #537

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading