trace-cmd/tests/scripts/run_tests.sh
Qiao Zhao 0faa3f6b32 enable RHEL-9 gating for trace-cmd
Resolves: rhbz#1969277

Signed-off-by: Qiao Zhao <qzhao@redhat.com>
2021-06-08 14:23:03 +08:00

18 lines
315 B
Bash

#!/usr/bin/bash
# make sure we have trace-cmd installed
if rpm -q --quiet trace-cmd; then
:
else
sudo dnf install -y trace-cmd
if [[ $? != 0 ]]; then
echo "install of trace-cmd failed!"
exit 1
fi
fi
# run a simple command to list available tracers
trace-cmd list || exit 2
exit 0