From 609ac5795ab16ab8a80a89feb54a9e23d4dec725 Mon Sep 17 00:00:00 2001 From: Dalf Date: Fri, 12 Jul 2019 19:35:36 +0200 Subject: [PATCH] .travis.yml: robot tests: remove the xvfb dependency --- .travis.yml | 3 --- searx/testing.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 04654ac23..e37b65864 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,6 @@ cache: addons: firefox: "latest" -before_install: - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start" install: - ./manage.sh install_geckodriver ~/drivers - export PATH=~/drivers:$PATH diff --git a/searx/testing.py b/searx/testing.py index 647c236fd..08a53e3f4 100644 --- a/searx/testing.py +++ b/searx/testing.py @@ -71,7 +71,7 @@ class SearxRobotLayer(): def run_robot_tests(tests): print('Running {0} tests'.format(len(tests))) for test in tests: - with Browser() as browser: + with Browser('firefox', headless=True) as browser: test(browser)