rteval/tests/scripts/run_tests.sh
Anubhav Shelat c261d895e5 Allow rteval to search /usr/bin/ for sysreport
Convert base64 data to text before wrapping.
Add sysreport to gating tests and check the exit status.
Resolves: RHEL-44437

Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
2024-06-24 13:33:13 -04:00

27 lines
321 B
Bash

#!/usr/bin/bash
# make sure we have rteval installed
if rpm -q --quiet rteval; then
:
else
sudo dnf install -y rteval
if [[ $? != 0 ]]; then
echo "install of rteval failed!"
exit 1
fi
fi
rteval --help
if [[ $? != 0 ]]; then
exit 2
fi
sudo rteval -s
if [[ $? != 0 ]]; then
exit 3
fi
exit 0