Skip to content

Cryptic error message when running without first downloading test vectors #232

@nfraprado

Description

@nfraprado

If fluster is run without first downloading the test vectors, a cryptic error message is thrown.

For example, running with the command:

$ fluster run -d GStreamer-VP9-V4L2SL-Gst1.0

returns:

[VP9-TEST-VECTORS] (GStreamer-VP9-V4L2SL-Gst1.0) vp90-2-02-size-66x32.webm                       ... Error

and:

=======================================================================
FAIL: vp90-2-02-size-66x32.webm (GStreamer-VP9-V4L2SL-Gst1.0.VP9-TEST-VECTORS.vp90-2-02-size-66x32.webm)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/fluster/test.py", line 80, in _test
    result = self.decoder.decode(
             ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fluster/decoders/gstreamer.py", line 163, in decode
    data = run_pipe_command_with_std_output(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fluster/utils.py", line 105, in run_pipe_command_with_std_output
    raise ex
  File "/usr/lib/python3/dist-packages/fluster/utils.py", line 84, in run_pipe_command_with_std_output
    data = subprocess.check_output(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'gst-launch-1.0 --no-fault filesrc location=/root/.local/share/fluster/resources/VP9-TEST-VECTORS/vp90-2-02-size-66x32.webm/vp90-2-02-size-66x32.webm ! parsebin !
v4l2slvp9dec ! video/x-raw ! videoconvert dither=none ! video/x-raw,format=I420 ! videocodectestsink -m' returned non-zero exit status 255.

for every test case.

Fluster should detect that the test vector files have not been downloaded and provide a more straightforward error message in that case, like "Non-existent VP9-TEST-VECTORS test vectors, please run fluster download VP9-TEST-VECTORS them first".

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions