From 8cb1dbbea2a79edfc55597fb36cb910876ddb4a3 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 6 Jun 2023 20:18:34 -0400 Subject: [PATCH] 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 --- t/fiotestlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+", -- 2.25.1