]> mj.ucw.cz Git - moe.git/commitdiff
Minor fix in log, extend default config
authorTomas Gavenciak <gavento@ucw.cz>
Fri, 24 Sep 2010 14:15:58 +0000 (16:15 +0200)
committerTomas Gavenciak <gavento@ucw.cz>
Fri, 24 Sep 2010 14:15:58 +0000 (16:15 +0200)
t/config
t/moe/log.py

index e559dd41b185a31735d962a70f948febd3a05593..906084c25a8f0472f1bf0915d1bcc843409e4144 100644 (file)
--- a/t/config
+++ b/t/config
@@ -4,6 +4,7 @@ PDIR = "{HOME}/tasks/{TASK}"
 
 # Files
 USER_LOG = "{TDIR}/log"
+TEST_LOG = "{TDIR}/{TEST}.log"
 TASK_CONFIG = "{PDIR}/config"
 STATUS_FILE = "{TDIR}/status"
 
@@ -16,6 +17,16 @@ USER = "gavento"
 SOURCE = "suma.c"
 EXTENSIONS += " dummy "
 
+# input extension to language
+EXT = "pas" ## TEST
+
+if (EXT == "pas") {LANG = "fpc"} 
+if (EXT == "fp") {LANG = "fpc"} 
+if (EXT == "gp") {LANG = "gpc"} 
+if (EXT == "c") {LANG = "gcc"} 
+if (EXT == "cc") {LANG = "c++"} 
+if (EXT == "cpp") {LANG = "c++"} 
+
 #### Old config format (inspiration?)
 
 # # HOME set automatically
index 3fcac226d3f286bc1666b0aa881de78455197ab3..aea63cb2c7afc16d8aefe73a719ecd240f1225dc 100644 (file)
@@ -97,7 +97,7 @@ class Loggers(Logger):
   def close_test_log(self):
     """Close per-test logfile, leaving only the null handler."""
     if self.test_handler:
-      self.test.info('Closing logfile' % filename)
+      self.test.info('Closing test logfile')
       self.test.removeHandler(self.test_handler)
     self.test_handler = None
     self.test_file.close()