Fix script for running tests in gating

I forgot to include the tests/unit_testing.sh fix in the previous
build.

Resolves: rhbz#1990237
This commit is contained in:
Vojtech Trefny 2021-08-17 10:07:41 +02:00
parent e9ae56e70a
commit 4bf6a0b6da
2 changed files with 7 additions and 4 deletions

View File

@ -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 <vtrefny@redhat.com> - 3.4.0-7
- Fix script for running tests in gating
Resolves: rhbz#1990237
* Wed Aug 11 2021 Vojtech Trefny <vtrefny@redhat.com> - 3.4.0-6
- Remove "Revert Terminology cleanups" patch
Resolves: rhbz#1990982

View File

@ -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