Skip to content

Commit

Permalink
t/fiotestlib: make recorded command prettier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vincentkfu committed Aug 2, 2023
1 parent df50839 commit 7b57011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/fiotestlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def run(self):
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+",
Expand Down

0 comments on commit 7b57011

Please sign in to comment.