From e349ee9154e2bbac99a080172c7d67c56c10c758 Mon Sep 17 00:00:00 2001 From: Benjamin Pereto Date: Oct 10 2017 16:45:57 +0000 Subject: FIX: doc pytest exceptions and handle errors for epel7 --- diff --git a/borgbackup.spec b/borgbackup.spec index bb5f60a..df797b9 100644 --- a/borgbackup.spec +++ b/borgbackup.spec @@ -69,7 +69,6 @@ export READTHEDOCS=True # workaround to include borg module for usage generation export PYTHONPATH=$(pwd)/build/$(ls build/ | grep 'lib.') - %if 0%{?rhel} make -C docs man %else @@ -84,7 +83,17 @@ install -D -m 0644 docs/_build/man/borg*.1* %{buildroot}%{_mandir}/man1/borg.1 %check export PYTHONPATH=$(pwd)/build/$(ls build/ | grep 'lib.') -py.test-3 -k "not test_non_ascii_acl and not test_fuse and not benchmark" $PYTHONPATH/borg/testsuite/*.py + +# workaround to prevent test issues with ascii/utf-8 under rhel 7 +%if 0%{?rhel} +export LANG=en_US.UTF-8 +%endif + +# exclude test_fuse: there is no modprobe in mock for fuse +# exclude test_non_ascii_acl: problem with mock +# exclude benchmark: not relevant for package build +# exclude test_dash_open: pytest stub has a bug and is fixed in 3.0.2 (epel7 uses 2.8.5 +py.test-3 -vk "not test_non_ascii_acl and not test_fuse and not benchmark and not test_dash_open" $PYTHONPATH/borg/testsuite/*.py %files %license LICENSE