t/fiotestlib: make recorded command prettier
authorVincent Fu <vincent.fu@samsung.com>
Wed, 2 Aug 2023 16:30:17 +0000 (12:30 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 2 Aug 2023 16:58:16 +0000 (12:58 -0400)
Instead of recording fio test commands as a single very long line, put
each option on its own line to make the command easier for humans to
digest.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/fiotestlib.py

index 0fe17b74bae3a0ef12bbac0a29387cf5c441ef85..1f35de0ae81d0b83d20698f5df8702ccb5619657 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(" ".join(command))
+            command_file.write(" \\\n ".join(command))
 
         try:
             with open(self.filenames['stdout'], "w+",