From: Martin Quinson Date: Wed, 8 Nov 2023 23:08:16 +0000 (+0100) Subject: tesh: display the run command ASAP, not after its timeout X-Git-Tag: v3.35~83^2 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d259b3370ea354bf2a4fb3e292a086b7a2f52ff7 tesh: display the run command ASAP, not after its timeout --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 47a5670865..80e106cfbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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.") diff --git a/tools/tesh/tesh.py b/tools/tesh/tesh.py index 856dab0913..bf95860e22 100755 --- a/tools/tesh/tesh.py +++ b/tools/tesh/tesh.py @@ -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)