6722bafeee
RHEL-9 doesn't ship flake8. Note that it was already disabled for %check anyway, but we also have an internal beaker test that runs test.sh where we would have to disable it too, at which point it's just easier to do that in test.sh itself. While at it, remove all traces of flake8 from the spec file as well, to avoid confusion in the future. Related: #1929210
24 lines
711 B
Diff
24 lines
711 B
Diff
diff -up rpmlint-rpmlint-1.11/test.sh.orig rpmlint-rpmlint-1.11/test.sh
|
|
--- rpmlint-rpmlint-1.11/test.sh.orig 2022-01-12 17:23:52.565790275 +0100
|
|
+++ rpmlint-rpmlint-1.11/test.sh 2022-01-12 17:24:02.043920708 +0100
|
|
@@ -2,7 +2,7 @@
|
|
|
|
export PYTHONPATH=$(pwd)/tools:$(pwd)
|
|
export TESTPATH="$(pwd)/test/"
|
|
-: ${PYTHON:=python} ${PYTEST:=py.test} ${FLAKE8:=flake8}
|
|
+: ${PYTHON:=python} ${PYTEST:=py.test}
|
|
: ${PYTHONWARNINGS:=all}
|
|
export PYTHONWARNINGS
|
|
|
|
@@ -40,10 +40,6 @@ $PYTEST -v || exit $?
|
|
|
|
unset PYTHONWARNINGS
|
|
|
|
-echo "$FLAKE8 tests"
|
|
-$FLAKE8 --version
|
|
-$FLAKE8 . ./rpmdiff ./rpmlint || exit $?
|
|
-
|
|
echo "man page tests"
|
|
if man --help 2>&1 | grep -q -- --warnings; then
|
|
tmpfile=$(mktemp) || exit 1
|