Port gating tests to standard-test-basic role

Related: rhbz#1947473
Signed-off-by: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Christian Heimes 2021-08-16 15:06:43 +02:00
parent 767fafb4cb
commit 65b90b257b
4 changed files with 9 additions and 13 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/tests/artifacts/
pyusb-0.4.1.tar.gz
/pyusb-1.0.0-a1.tar.gz
/pyusb-1.0.0a2.tar.gz

View File

@ -1,8 +0,0 @@
#!/bin/sh
set -ex
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
dnf install -y pyusb
exec ${DIR}/test_ipa_yubico_api.py

2
tests/test_ipa_yubico_api.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/usr/libexec/platform-python
#!/usr/bin/python3
"""Simple test for APIs used by python-yubico
"""
import logging

View File

@ -3,8 +3,11 @@
tags:
- classic
roles:
- role: standard-test-scripts
- role: standard-test-source
- role: standard-test-basic
required_packages:
- python3-pyusb
tests:
- sanity.sh
files:
- test_ipa_yubico_api.py
- test_ipa_yubico_api:
dir: "tests"
run: ./test_ipa_yubico_api.py