From d259b3370ea354bf2a4fb3e292a086b7a2f52ff7 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 9 Nov 2023 00:08:16 +0100 Subject: [PATCH] tesh: display the run command ASAP, not after its timeout --- CMakeLists.txt | 2 +- tools/tesh/tesh.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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) -- 2.20.1