]> git-server-git.apps.pok.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>
Mon, 11 Apr 2022 19:06:26 +0000 (13:06 -0600)
commit14846aa4fe7602391af512e1d526f965f074fff8
tree396be6d02f7aebdb0d49ba56c26e56f93efbddb3
parentf762bdb6c94844b440b667892c49706d75a1580d
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