commit 06ee649a918c144f55245e1bc6e051a0a39bf183
parent f2197fa06b5aac7e50e104ad268e0297543cb81b
Author: James Prestwood <prestwoj@gmail.com>
Date: Tue, 7 Sep 2021 14:14:43 -0700
auto-t: hwsim.py: add match_times property
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py
@@ -153,6 +153,14 @@ class Rule(HwsimDBusAbstract):
reply_handler=self._success, error_handler=self._failure)
self._wait_for_async_op()
+ @property
+ def match_times(self):
+ return self._properties['MatchTimes']
+
+ @match_times.setter
+ def match_times(self, value):
+ self._prop_proxy.Set(self._iface_name, 'MatchTimes', dbus.UInt16(value))
+
def remove(self):
self._iface.Remove(reply_handler=self._success,
error_handler=self._failure)