Commit Graph

1 Commits

Author SHA1 Message Date
Jordan Pittier
9e227c5b6c Introduce new helper: call_and_ignore_notfound_exc()
This new function calls a function passed as parameter and ignore
the NotFound exception if it raised.

This removes some code duplication.

Also a new `test_utils` module is introduced to tempest.lib and the
`find_test_caller` function is moved into that new module. Backward
compatibility and deprecation path are ensured and documented.

Note for the future: having a module called "misc" is not optimal because
the name is not super descriptive. (it's a detail though, but worth
mentioning imo).

Change-Id: I5a4523c20c19957bfccf2aa95157baf106b3d364
2016-05-28 15:46:46 +02:00