arcalot / arcaflow-plugins-incubator

Unofficial test and under-development plugins for Arcaflow
Apache License 2.0
3 stars 7 forks source link

fio plugin test fails on missing fio-plus.json file #42

Closed sandrobonazzola closed 2 years ago

sandrobonazzola commented 2 years ago

Describe the bug

$ python test_fio_plugin.py
E.
======================================================================
ERROR: test_functional_success (__main__.FioPluginTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/arcaflow-plugins/python/fio/test_fio_plugin.py", line 47, in test_functional_success
    with open("fio-plus.json", "r") as fio_output_file:
FileNotFoundError: [Errno 2] No such file or directory: 'fio-plus.json'

----------------------------------------------------------------------
Ran 2 tests in 0.010s

FAILED (errors=1)

To reproduce

Try running test for fio plugin.

Additional context

$ pip list
Package             Version
------------------- -------
arcaflow-plugin-sdk 0.7.0
attrs               22.1.0
Automat             20.2.0
build               0.8.0
constantly          15.1.0
hyperlink           21.0.0
idna                3.3
incremental         21.3.0
numpy               1.23.2
packaging           21.3
pep517              0.13.0
pip                 22.2.2
pyparsing           3.0.9
PyYAML              6.0
scipy               1.9.1
setuptools          50.3.2
six                 1.16.0
tomli               2.0.1
Twisted             22.4.0
typing_extensions   4.3.0
zope.interface      5.4.0
sandrobonazzola commented 2 years ago

Found the issue, fio package was missing. Pushing a patch to fix the test and provide more useful information on the plugin when this happens.