summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalf <alex@al-f.net>2019-07-12 19:35:36 +0200
committerDalf <alex@al-f.net>2019-07-13 15:49:59 +0200
commit609ac5795ab16ab8a80a89feb54a9e23d4dec725 (patch)
tree8c45d448bf6bec7665de41b5015585e7ede4ba16
parentfbe40001d35ea5cf74c92f35d76c642a480a5c9f (diff)
.travis.yml: robot tests: remove the xvfb dependency
-rw-r--r--.travis.yml3
-rw-r--r--searx/testing.py2
2 files changed, 1 insertions, 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)