From: Martin Quinson Date: Sat, 3 Sep 2016 21:33:44 +0000 (+0200) Subject: tesh: add a fucking \n at the end of file in mkfile command X-Git-Tag: v3_14~419^2~7 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e612178e5914b6c6cb9ab947e5a433f9a498ca22 tesh: add a fucking \n at the end of file in mkfile command This missing char got smpi_replay mad (believing that there is only one trace file for all where there was another trace file on the second line, that went undetected because not properly terminated). I lost my evenning because of that stupid little \n. I'm not happy. --- diff --git a/tools/tesh/tesh.py b/tools/tesh/tesh.py index 1e67418eff..7f3aca4df6 100755 --- a/tools/tesh/tesh.py +++ b/tools/tesh/tesh.py @@ -222,6 +222,7 @@ class Cmd(object): if file is None: fatal_error("Unable to create file "+filename) file.write("\n".join(self.input_pipe)) + file.write("\n") file.close() def _cmd_cd(self, argline):