From da869f1efe3f623a52dd5a432f984f7780ea6149 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Thu, 6 Nov 2014 14:56:57 -0200 Subject: improving log and logging to file on functional tests --- service/test/functional/features/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'service/test/functional') diff --git a/service/test/functional/features/environment.py b/service/test/functional/features/environment.py index 19e2a6f0..cb9e0876 100644 --- a/service/test/functional/features/environment.py +++ b/service/test/functional/features/environment.py @@ -33,7 +33,8 @@ def before_all(context): pixelated.controllers.features_controller.FeaturesController.DISABLED_FEATURES.append('autoRefresh') logging.disable('INFO') - worker = lambda app, port: pixelated.runserver.app.run(host='localhost', port=4567) + worker = lambda app, port: pixelated.runserver.app.run(host='localhost', port=4567, + logFile=open('/tmp/behave-tests.log', 'w')) context._process = multiprocessing.Process(target=worker, args=(context.app, 4567)) context._process.start() -- cgit v1.2.3