summaryrefslogtreecommitdiff
path: root/searx/testing.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-02-27 18:41:09 +0100
committerAdam Tauber <asciimoo@gmail.com>2016-02-27 19:01:55 +0100
commit472a40902274772bbec66d93191b12d02131f1b7 (patch)
treee21adafa82b186090eda6a80b9be44393f50a328 /searx/testing.py
parent0fbd705259c500bb01ec2d649670de2f0a91830a (diff)
[fix] robot tests
Diffstat (limited to 'searx/testing.py')
-rw-r--r--searx/testing.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/searx/testing.py b/searx/testing.py
index bc04d0fb0..cac3477e4 100644
--- a/searx/testing.py
+++ b/searx/testing.py
@@ -57,7 +57,7 @@ class SearxRobotLayer(Layer):
)
def tearDown(self):
- os.kill(self.server.pid, 15)
+ os.kill(self.server.pid, 9)
# remove previously set environment variable
del os.environ['SEARX_SETTINGS_PATH']
@@ -78,7 +78,11 @@ if __name__ == '__main__':
base_dir = abspath(join(dirname(__file__), '../tests'))
if sys.argv[1] == 'robot':
- Runner(['--color',
- '--auto-progress',
- '--path', base_dir],
- found_suites=[test_suite()]).run()
+ r = Runner(['--color',
+ '--auto-progress',
+ '--stop-on-error',
+ '--path',
+ base_dir],
+ found_suites=[test_suite()])
+ r.run()
+ sys.exit(int(r.failed))