python-blivet/tests/unit_testing.sh
Vojtech Trefny 4bf6a0b6da Fix script for running tests in gating
I forgot to include the tests/unit_testing.sh fix in the previous
build.

Resolves: rhbz#1990237
2021-08-17 10:53:59 +02:00

12 lines
229 B
Bash

#!/bin/bash
# Bail out if anything goes wrong
set -e
# Get path to blivet
blivet_path=$(find /usr/ -path */site-packages | tr '\n' ':')
# Run upstream unit tests
cd ./source/
PYTHONPATH=$blivet_path python3 tests/run_tests.py