]> mj.ucw.cz Git - eval.git/blobdiff - t/moe/tasktypes/dummy.py
Pipeline functions now get keyword arguments
[eval.git] / t / moe / tasktypes / dummy.py
index 446c4e79a8377bcafb91b253322652d92e95fbb6..c8b7c73b232b9b70cfc34f99e16a5283a470c13f 100644 (file)
@@ -8,12 +8,12 @@ Runs the test pipeline for each TEST
 
 def init(e):
       
-    def hook_m_50(self):
+    def hook_m_50(e):
        e.log.info('Here should be compiling')
 
     e.main_pipe.insert(50, 'dummy tasktype hook_m_50', hook_m_50)
     
-    def hook_m_60(self):
+    def hook_m_60(e):
        e.log.info('Here should be test pipeline running')
        tests = e['TESTS'].split()
        for t in tests:
@@ -29,7 +29,7 @@ def init(e):
     
     e.main_pipe.insert(60, 'dummy tasktype hook_m_60', hook_m_60) 
     
-    def hook_t_30(self):
+    def hook_t_30(e):
        e.log.info("Maybe we should do something? Nah...")
     
     e.test_pipe.insert(30, 'dummy tasktype hook_t_30', hook_t_30)