tools/fiograph: accommodate job files not ending in .fio
authorVincent Fu <vincent.fu@samsung.com>
Thu, 19 Jan 2023 00:58:08 +0000 (19:58 -0500)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 23 Jan 2023 18:51:16 +0000 (13:51 -0500)
commit13bc47b65d32df6fd212c4687c7fd29b4ab7c09d
tree56a81036ff57e56cba389bf39eaf884a658008e4
parentcab9bedf70f34142b70cf97bf4d8c8df57a6f82f
tools/fiograph: accommodate job files not ending in .fio

For job files not ending in .fio, fiograph will overwrite the job file
with a graphviz script and then delete it if --keep is not specified.

Fix this by creating temporary files to contain the graphviz script and
image file. Then rename or delete the script and image file as directed
by the user specified options.

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