mcelog/tests/version.sh
Prarit Bhargava 364e9a1c47 Add tests
Resolves: bz2162168

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
2023-06-08 13:36:14 -04:00

16 lines
341 B
Bash
Executable File

#!/bin/bash
#
# This is a simple version test to satisfy the RHEL8.1 onboard gating
# requirement.
# fail the whole test if any of the command pipelines below fails
set -ex
version=$(mcelog --version 2>&1 | awk ' { print $2 } ')
if [ "$version" == "unknown" ]; then
echo "mcelog version is unknown."
exit 1
fi
# if we get here, it's OK