tests: disable GTK tests on travis

The environment there is way too old.

QubesOS/qubes-issues#910
This commit is contained in:
Marek Marczykowski-Górecki 2017-04-07 12:29:32 +02:00
parent e5ad26c090
commit 0ada6d0b64
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -910,11 +910,17 @@ def load_tests(loader, tests, pattern): # pylint: disable=unused-argument
'qubes.tests.tools.qvm_firewall',
'qubes.tests.tools.qvm_ls',
'qubespolicy.tests',
'qubespolicy.tests.gtkhelpers',
'qubespolicy.tests.rpcconfirmation',
):
tests.addTests(loader.loadTestsFromName(modname))
# GTK/Glib is way too old there
if 'TRAVIS' not in os.environ:
for modname in (
'qubespolicy.tests.gtkhelpers',
'qubespolicy.tests.rpcconfirmation',
):
tests.addTests(loader.loadTestsFromName(modname))
tests.addTests(loader.discover(
os.path.join(os.path.dirname(__file__), 'tools')))