Use tmt and osci for gating
converted from STI which ran just --help
This commit is contained in:
parent
595b793146
commit
be02897e1d
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
@ -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
11
plan.fmf
Normal file
@ -0,0 +1,11 @@
|
||||
discover:
|
||||
how: shell
|
||||
tests:
|
||||
- name: smoke
|
||||
test: pethtool --help
|
||||
require:
|
||||
- python3-ethtool
|
||||
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
@ -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
|
||||
@ -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
|
||||
Loading…
Reference in New Issue
Block a user