Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tesh: add a fucking \n at the end of file in mkfile command
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 3 Sep 2016 21:33:44 +0000 (23:33 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 3 Sep 2016 21:33:47 +0000 (23:33 +0200)
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.

tools/tesh/tesh.py

index 1e67418..7f3aca4 100755 (executable)
@@ -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))
         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):
         file.close()
 
     def _cmd_cd(self, argline):