]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
run_tasks: Do not mask missing task dependencies
authorZack Cerza <zack@redhat.com>
Fri, 1 Apr 2022 15:14:42 +0000 (11:14 -0400)
committerZack Cerza <zack@redhat.com>
Tue, 19 Apr 2022 21:31:07 +0000 (15:31 -0600)
commit6e24c8f5b645df4dc61dc220386ec86cfb109b56
tree35ac4c9811e0469183316761abb2c51da16cceee
parent908d3776721b6cbd12dbc138060187bff0bd8c14
run_tasks: Do not mask missing task dependencies

While doing packaging work, I noticed that teuthology began claiming it
couldn't find the 'tests' task. After some slightly painful debugging I
realized the issue was that the task was trying to import pytest, which
wasn't installed. The ModuleNotFoundError that was being raised was
being confused with the exception that would be raised if the task
couldn't be found at all. With this change, we see the root cause.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/run_tasks.py