t/fiotestlib: record test command in more useful format
authorVincent Fu <vincent.fu@samsung.com>
Wed, 7 Jun 2023 00:18:34 +0000 (20:18 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Thu, 8 Jun 2023 18:39:07 +0000 (14:39 -0400)
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 <vincent.fu@samsung.com>
t/fiotestlib.py

index 73b904c52ebf701ffaa95960ce2d6e5c1414a445..926b02be6c016c07954e0edf2a9d30199259329d 100755 (executable)
@@ -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+",