diff --git a/tests/p_libbpf/0_install_libbpf.sh b/tests/p_libbpf/0_install_libbpf.sh index 4461c58..c92e0ae 100755 --- a/tests/p_libbpf/0_install_libbpf.sh +++ b/tests/p_libbpf/0_install_libbpf.sh @@ -4,6 +4,9 @@ # Author: Konark Modi t_Log "Running $0 -installing libbpf and bcc-tools." -t_InstallPackage libbpf -t_InstallPackage bcc-tools - +if [ "$centos_ver" -ge 8 ] ; then + t_InstallPackage libbpf + t_InstallPackage bcc-tools +else + t_log "Skip on less than EL8" +fi diff --git a/tests/p_libbpf/10_test_bcc_tools.sh b/tests/p_libbpf/10_test_bcc_tools.sh index 41760d4..7344029 100755 --- a/tests/p_libbpf/10_test_bcc_tools.sh +++ b/tests/p_libbpf/10_test_bcc_tools.sh @@ -8,7 +8,7 @@ t_Log "Running $0 - bcc-tools: argdist test" -if [ -z "$CONTAINERTEST" ] ; then +if [ -z "$CONTAINERTEST" ] && [ "$centos_ver" -ge 8 ]; then /usr/share/bcc/tools/argdist -i 1 -n 5 -C 'p:c:umask(u32 mask):u32:mask' else t_Log "Running in container -> SKIP"