test: improve run-fio-tests.py file open method
authorVincent Fu <vincent.fu@samsung.com>
Wed, 5 Oct 2022 20:53:20 +0000 (13:53 -0700)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 5 Oct 2022 22:15:40 +0000 (18:15 -0400)
commit0f5234b4d75c4415d87903d26cdd79ee380c7f49
tree2a4315adcab887056e5c85a9d01c1a1de63374d0
parent114eadb2d1df6a86afdcc42a21310d8c5559e72d
test: improve run-fio-tests.py file open method

We have several instances where we try to open a file and fail the test
if accessing the file fails. Encapsulate all of this within a single
method to reduce code duplication.

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