Skip to content
Snippets Groups Projects
Commit 58386913 authored by Vermaat's avatar Vermaat
Browse files

Fixed the batch job runner.

parent f6b21018
No related branches found
No related tags found
Loading
......@@ -16,6 +16,14 @@ import sys
import daemon
import signal
import fcntl
import site
# Todo: Get this from the configuration file
root_dir = os.path.split(os.path.dirname(__file__))[0]
site.addsitedir(root_dir)
# Todo: Fix Mutalyzer to not depend on working directory
if not __name__ == '__main__':
os.chdir(root_dir)
from mutalyzer.config import Config
from mutalyzer.Db import Batch
......@@ -28,8 +36,8 @@ def sigusr1_daemon_notified(*args):
sys.exit()
# Change dir
if len(sys.argv[0].split('/')) > 2 :
os.chdir(sys.argv[0].rsplit('/', 2)[0])
#if len(sys.argv[0].split('/')) > 2 :
# os.chdir(sys.argv[0].rsplit('/', 2)[0])
C = Config()
......
......@@ -215,7 +215,6 @@ class TestWSGI():
@kwarg size: Number of variants in input.
@kwarg header: Message that must be found in the batch job result.
"""
return # Todo: temporarily switched of batch tests.
r = self.app.get('/batch')
form = r.forms[0]
if arg1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment