]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
run_tasks.py: allow _import to raise the right ImportError 1238/head
authorNathan Cutler <ncutler@suse.com>
Thu, 22 Nov 2018 11:59:48 +0000 (12:59 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 23 Nov 2018 21:26:02 +0000 (22:26 +0100)
commitaf7103eca2b7571697b7b239a24fe2898e949d56
tree60748a96574f9f8c082788d885f9adf32676a93a
parent01798966a16a4acdf37d9fea314e50c03cfc93e5
run_tasks.py: allow _import to raise the right ImportError

It turns out it's possible for a file qa/tasks/foo.py to exist,
yet importing it still raises an ImportError because it references a
non-existent symbol.

In this case, teuthology was clobbering the real ImportError with its
own bogus text.

Fixes: http://tracker.ceph.com/issues/37370
Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/run_tasks.py