rteval-loads/tests/scripts/run_tests.sh
John Kacur 919703ad1c Fix the gating test to match the kernel version delivered by rteval-loads
Fix the gating test to match the kernel version delivered by rteval-loads
Change the version number to sync with rteval-loads in rhel-8
Resolves: rhbz#2042214

Signed-off-by: John Kacur <jkacur@redhat.com>
2022-01-19 10:13:32 -05:00

21 lines
381 B
Bash

#!/usr/bin/bash
# make sure we have rteval installed
if rpm -q --quiet rteval-loads; then
:
else
sudo dnf install -y rteval-loads
if [[ $? != 0 ]]; then
echo "install of rteval failed!"
exit 1
fi
fi
# check that the tarball is in place
if [[ ! -f /usr/share/rteval/loadsource/linux-5.13.2.tar.xz ]]; then
echo "No load tarball found!"
exit 3
fi
exit 0