[Kimchi-devel] [PATCH] [Wok] Fix test issue
Lucio Correia
luciojhc at linux.vnet.ibm.com
Mon Feb 29 12:38:23 UTC 2016
In a clean environment, system does not create log directory.
Fix this issue and also remove unnecessary server init option.
Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
src/wok/server.py | 1 +
tests/utils.py | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wok/server.py b/src/wok/server.py
index 122efff..902d4bf 100644
--- a/src/wok/server.py
+++ b/src/wok/server.py
@@ -68,6 +68,7 @@ class Server(object):
make_dirs = [
os.path.abspath(config.get_log_download_path()),
+ os.path.abspath(configParser.get("logging", "log_dir")),
os.path.dirname(os.path.abspath(options.access_log)),
os.path.dirname(os.path.abspath(options.error_log)),
os.path.dirname(os.path.abspath(config.get_object_store()))
diff --git a/tests/utils.py b/tests/utils.py
index 249205d..d158ba1 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -119,7 +119,6 @@ def run_server(host, port, ssl_port, test_mode, cherrypy_port=None,
'websockets_port': 64667, 'ssl_cert': '', 'ssl_key': '',
'max_body_size': '4*1024', 'test': test_mode,
'access_log': '/dev/null', 'error_log': '/dev/null',
- 'req_log': '/dev/null',
'environment': environment, 'log_level': 'debug'})()
if model is not None:
setattr(args, 'model', model)
--
1.9.1
More information about the Kimchi-devel
mailing list