Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tesh: display the run command ASAP, not after its timeout
[simgrid.git] / tools / tesh / tesh.py
index 9a4f924..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)
 
@@ -710,7 +710,16 @@ def main():
             cmd.add_ignore(line[len("! ignore "):])
 
         else:
-            fatal_error(f"UNRECOGNIZED OPTION LINE: {line}")
+            fatal_error(f"UNRECOGNIZED OPTION LINE: {line}\n"
+            "Valid requests:\n"
+            "   ! output ignore\n"
+            "   ! output sort\n"
+            "   ! output display\n"
+            "   ! setenv XX=YY\n"
+            "   ! ignore XYZ\n"
+            "   ! expect return NN\n"
+            "   ! expect signal NN\n"
+            "   ! timeout NN\n")
 
         line = file.readfullline()