From 78d02f347ee0db2d90e8630c34334685004f67c6 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Jun 04 2019 07:44:36 +0000 Subject: conditional test exclusions, run more tests on most platforms --- diff --git a/borgbackup.spec b/borgbackup.spec index 056a49d..1898a2a 100644 --- a/borgbackup.spec +++ b/borgbackup.spec @@ -135,16 +135,23 @@ 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_non_ascii_acl: problem with mock +TEST_SELECTOR="not test_fuse and not benchmark and not test_non_ascii_acl" +%if 0%{?rhel} # exclude test_dash_open: pytest stub has a bug and is fixed in 3.0.2 (epel7 uses 2.8.5) +TEST_SELECTOR="$TEST_SELECTOR and not test_dash_open" +%endif +%if 0%{?fedora} == 30 # test_corrupted_repository: failures in mock/koji with F30 # upstream: https://github.com/borgbackup/borg/issues/4573 # pytest 3.7.x - 3.9.x fail to run the test suite. # Fedora 29 has pytest 3.6.4 (good), Fedora 30 uses 3.9.3 (as of 05/2019) # pytest versions 3.8.x/3.9.x cause test failure in ArchiverTestCase::test_corrupted_repository # (only when running the full suite). -py.test-3 -x -vk "not test_non_ascii_acl and not test_fuse and not benchmark and not test_dash_open test_corrupted_repository" $PYTHONPATH/borg/testsuite/*.py +TEST_SELECTOR="$TEST_SELECTOR and not test_corrupted_repository" +%endif +py.test-3 -x -vk "$TEST_SELECTOR" $PYTHONPATH/borg/testsuite/*.py %files %license LICENSE