diff options
author | Alexandre Flament <alex@al-f.net> | 2019-07-06 18:47:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-06 18:47:35 +0200 |
commit | 3faaf34e25db09988b113f74feb6227d3df3db95 (patch) | |
tree | 521b6e2a11c16b162c2b4f6eb01648b90ac14d4d /searx/testing.py | |
parent | 69c8ad86f3505051c029146382cbaf9531a35a8a (diff) | |
download | searxng-3faaf34e25db09988b113f74feb6227d3df3db95.tar.gz searxng-3faaf34e25db09988b113f74feb6227d3df3db95.zip |
Fix ./manage.sh robot_tests (#1633)
doi_resolvers / default_doi_resolver were missing in the settings_robots.yml file, so the test server was not able to start (crash). Since the output wasn't displayed, it was not obvious why the Selenium couldn't connect to searx.
Diffstat (limited to 'searx/testing.py')
-rw-r--r-- | searx/testing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/testing.py b/searx/testing.py index 0d17b2a08..647c236fd 100644 --- a/searx/testing.py +++ b/searx/testing.py @@ -6,7 +6,6 @@ import os import subprocess import traceback - from os.path import dirname, join, abspath from splinter import Browser @@ -49,6 +48,7 @@ class SearxRobotLayer(): exe = 'python' # set robot settings path + os.environ['SEARX_DEBUG'] = '1' os.environ['SEARX_SETTINGS_PATH'] = abspath( dirname(__file__) + '/settings_robot.yml') @@ -58,6 +58,8 @@ class SearxRobotLayer(): stdout=subprocess.PIPE, stderr=subprocess.STDOUT ) + if hasattr(self.server.stdout, 'read1'): + print(self.server.stdout.read1(1024).decode('utf-8')) def tearDown(self): os.kill(self.server.pid, 9) |