From 06ee649a918c144f55245e1bc6e051a0a39bf183 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Tue, 7 Sep 2021 14:14:43 -0700 Subject: [PATCH] auto-t: hwsim.py: add match_times property --- autotests/util/hwsim.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autotests/util/hwsim.py b/autotests/util/hwsim.py index 26092379..599a842e 100755 --- 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)