From: Vincent Fu Date: Wed, 7 Jun 2023 00:18:34 +0000 (-0400) Subject: t/fiotestlib: record test command in more useful format X-Git-Tag: fio-3.36~96 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8cb1dbbea2a79edfc55597fb36cb910876ddb4a3;p=fio.git t/fiotestlib: record test command in more useful format Instead of recording the test command as a Python object, record it as a string with spaces delimiting each of the paramters. This way we can use it to directly issue the command in a shell. Signed-off-by: Vincent Fu --- diff --git a/t/fiotestlib.py b/t/fiotestlib.py index 73b904c5..926b02be 100755 --- a/t/fiotestlib.py +++ b/t/fiotestlib.py @@ -75,7 +75,7 @@ class FioExeTest(FioTest): command = [self.paths['exe']] + self.parameters with open(self.filenames['cmd'], "w+", encoding=locale.getpreferredencoding()) as command_file: - command_file.write(f"{command}\n") + command_file.write(" ".join(command)) try: with open(self.filenames['stdout'], "w+",