tests: re-enable policy prompt tests in travis
Xenial environment has much newer GTK/Glib. For those test to run, few more changes are needed: - relevant GTK packages installed - X server running (otherwise GTK terminate the process on module import...) - enable system side packages in virtualenv set by travis
This commit is contained in:
parent
b68746163b
commit
65bdff1fdf
@ -3,7 +3,12 @@ dist: xenial
|
|||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- '3.5'
|
- '3.5'
|
||||||
|
virtualenv:
|
||||||
|
system_site_packages: true
|
||||||
|
services:
|
||||||
|
- xvfb
|
||||||
install:
|
install:
|
||||||
|
- sudo apt-get -y install python3-gi gir1.2-gtk-3.0
|
||||||
- pip install --quiet -r ci/requirements.txt
|
- pip install --quiet -r ci/requirements.txt
|
||||||
- git clone https://github.com/"${TRAVIS_REPO_SLUG%%/*}"/qubes-builder ~/qubes-builder
|
- git clone https://github.com/"${TRAVIS_REPO_SLUG%%/*}"/qubes-builder ~/qubes-builder
|
||||||
script:
|
script:
|
||||||
|
@ -1347,8 +1347,6 @@ def load_tests(loader, tests, pattern): # pylint: disable=unused-argument
|
|||||||
):
|
):
|
||||||
tests.addTests(loader.loadTestsFromName(modname))
|
tests.addTests(loader.loadTestsFromName(modname))
|
||||||
|
|
||||||
# GTK/Glib is way too old there
|
|
||||||
if 'TRAVIS' not in os.environ:
|
|
||||||
for modname in (
|
for modname in (
|
||||||
'qubespolicy.tests.gtkhelpers',
|
'qubespolicy.tests.gtkhelpers',
|
||||||
'qubespolicy.tests.rpcconfirmation',
|
'qubespolicy.tests.rpcconfirmation',
|
||||||
|
Loading…
Reference in New Issue
Block a user