commit | 2999963ff8bdfb48d55b5c74b204fef99e4e66ec | [log] [tgz] |
---|---|---|
author | Matt Riedemann <mriedem.os@gmail.com> | Thu Feb 14 14:32:20 2019 -0500 |
committer | Matt Riedemann <mriedem.os@gmail.com> | Fri Feb 15 09:01:26 2019 -0500 |
tree | 43164a1f8a789ceb7075fd9601531ca87c29915c | |
parent | b4763ef57e54c4517de88affb983de1de2f0ac64 [diff] |
Allow decorators.attr to be conditional There are cases where we want to conditionally apply an attribute to a test function, for example, if SSH validation is enabled then a test may run much slower than if it is not. This adds a 'condition' kwarg to the attr() decorator which behaves similarly to the 'condition' kwarg on the skip_because() decorator. Change-Id: I83233854a217b6961e7614d7d9df1b4fc8d5a640