From 4bf6a0b6da12e1b0cc06d14c2e910a2cc6ee2078 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Aug 17 2021 08:53:59 +0000 Subject: Fix script for running tests in gating I forgot to include the tests/unit_testing.sh fix in the previous build. Resolves: rhbz#1990237 --- diff --git a/python-blivet.spec b/python-blivet.spec index 8f044d8..0dd786e 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -23,7 +23,7 @@ Version: 3.4.0 #%%global prerelease .b2 # prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2 -Release: 6%{?prerelease}%{?dist} +Release: 7%{?prerelease}%{?dist} Epoch: 1 License: LGPLv2+ %global realname blivet @@ -202,6 +202,10 @@ configuration. %endif %changelog +* Tue Aug 17 2021 Vojtech Trefny - 3.4.0-7 +- Fix script for running tests in gating + Resolves: rhbz#1990237 + * Wed Aug 11 2021 Vojtech Trefny - 3.4.0-6 - Remove "Revert Terminology cleanups" patch Resolves: rhbz#1990982 diff --git a/tests/unit_testing.sh b/tests/unit_testing.sh index be4630a..e028333 100644 --- a/tests/unit_testing.sh +++ b/tests/unit_testing.sh @@ -4,9 +4,8 @@ set -e # Get path to blivet -blivet_path=$(find /usr/ -path */site-packages/) +blivet_path=$(find /usr/ -path */site-packages | tr '\n' ':') # Run upstream unit tests cd ./source/ -PYTHONPATH=$PYTHONPATH:$blivet_path python3 -m unittest discover -v -s ./tests/ -p '*_test.py' - +PYTHONPATH=$blivet_path python3 tests/run_tests.py