Use tmt and osci for gating

converted from STI which ran just --help
This commit is contained in:
Lukáš Zachar 2026-06-17 15:53:14 +02:00
parent 595b793146
commit be02897e1d
5 changed files with 15 additions and 29 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

View File

@ -1,6 +1,8 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

11
plan.fmf Normal file
View File

@ -0,0 +1,11 @@
discover:
how: shell
tests:
- name: smoke
test: pethtool --help
require:
- python3-ethtool
execute:
how: tmt

View File

@ -1,17 +0,0 @@
#!/usr/bin/bash
# make sure we have python3-ethtool installed
if rpm -q --quiet python3-ethtool; then
:
else
sudo dnf install -y python3-ethtool
if [[ $? != 0 ]]; then
echo "install of python3-ethtool failed!"
exit 1
fi
fi
# See if python3-ethtool's pethtool is installed,executable and help works.
pethtool --help 2>> /dev/null
if [[ $? != 0 ]]; then
exit 2
fi

View File

@ -1,11 +0,0 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: scripts
run: ./run_tests.sh
required_packages:
- python3-ethtool