From 65b90b257b1c8cb621aa6054d521349142a333e2 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 16 Aug 2021 15:06:43 +0200 Subject: [PATCH] Port gating tests to standard-test-basic role Related: rhbz#1947473 Signed-off-by: Christian Heimes --- .gitignore | 1 + tests/sanity.sh | 8 -------- tests/test_ipa_yubico_api.py | 2 +- tests/tests.yml | 11 +++++++---- 4 files changed, 9 insertions(+), 13 deletions(-) delete mode 100644 tests/sanity.sh mode change 100644 => 100755 tests/test_ipa_yubico_api.py diff --git a/.gitignore b/.gitignore index 80b188a..ab6734d 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/tests/sanity.sh b/tests/sanity.sh deleted file mode 100644 index 133d417..0000000 --- a/tests/sanity.sh +++ /dev/null @@ -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 diff --git a/tests/test_ipa_yubico_api.py b/tests/test_ipa_yubico_api.py old mode 100644 new mode 100755 index 593152b..2a02d24 --- a/tests/test_ipa_yubico_api.py +++ b/tests/test_ipa_yubico_api.py @@ -1,4 +1,4 @@ -#!/usr/libexec/platform-python +#!/usr/bin/python3 """Simple test for APIs used by python-yubico """ import logging diff --git a/tests/tests.yml b/tests/tests.yml index e1e1cef..bf008e4 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -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