Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tesh: display the run command ASAP, not after its timeout
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 8 Nov 2023 23:08:16 +0000 (00:08 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 8 Nov 2023 23:08:16 +0000 (00:08 +0100)
CMakeLists.txt
tools/tesh/tesh.py

index 47a5670..80e106c 100644 (file)
@@ -124,7 +124,7 @@ if(NOT PERL_FOUND)
   message(FATAL_ERROR "Please install Perl to compile SimGrid.")
 endif()
 
-# tesh.py needs python 3 (or the module python-subprocess32 on python2.8+)
+# tesh.py needs python 3
 find_package(Python3 COMPONENTS Interpreter)
 if(NOT Python3_Interpreter_FOUND)
   message(FATAL_ERROR "Please install Python (version 3 or higher) to compile SimGrid.")
index 856dab0..bf95860 100755 (executable)
@@ -354,8 +354,8 @@ class Cmd:
         self.args += TeshState().args_suffix
 
         logs = list()
-        logs.append("[{file}:{number}] {args}".format(file=FileReader().filename,
-                                                      number=self.linenumber, args=self.args))
+        print("[{file}:{number}] {args}".format(file=FileReader().filename,
+                                                      number=self.linenumber, args=self.args), flush=True)
 
         args = shlex.split(self.args)