To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 59c5ede6 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

minor change

parent 4c8833a7
......@@ -537,7 +537,7 @@ def start_test(testid, cur, cn, obsdict_key, obsdict_id):
mode = 'W' # use default
size = dwtconf.xpath('d:size', namespaces=ns)
if size:
size = size[0].text.strip()
size = flocklab.parse_int(size[0].text.strip())
else:
size = 4
xmlblock += "\t<dataTraceConf>\n\t\t<variable>%s</variable>\n\t\t<varName>%s</varName>\n\t\t<mode>%s</mode>\n\t\t<size>%d</size>\n\t</dataTraceConf>\n" % (varaddr, var, mode, size)
......
......@@ -189,6 +189,18 @@ def read_from_db_file(dbfile):
### END read_from_db_file
##############################################################################
#
# write_to_error_log: Write an error message to the error log file that will be passed to the user
#
##############################################################################
def write_to_error_log(timestamp, obsid, nodeid, message):
# TODO make this more efficient and thread-safe
with open(testresultsfile_dict['errorlog'][0], "a") as errorlog:
errorlog.write("%s,%d,%d,%s\n" % (str(timestamp), obsid, nodeid, message))
### END write_to_error_log
##############################################################################
#
# worker_dbfiles: Parses observer DB files.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment