From 33b49cbad3eaeb6d5f5329904ca049fb224766ef Mon Sep 17 00:00:00 2001 From: Angelo Compagnucci Date: Thu, 7 Oct 2021 10:53:51 +0200 Subject: [PATCH] research/fraginternals: Test: adding pre_delay pre_delay can be used to add a delay before actually executing the test. Suggested-by: Michael Trimarchi Signed-off-by: Angelo Compagnucci --- research/fraginternals.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/research/fraginternals.py b/research/fraginternals.py index 63d159ed6..15ac8c9c2 100644 --- a/research/fraginternals.py +++ b/research/fraginternals.py @@ -202,6 +202,7 @@ class Test(metaclass=abc.ABCMeta): def __init__(self, actions=None): self.actions = actions if actions != None else [] self.generated = False + self.pre_delay = None self.delay = None self.inc_pn = None self.check_fn = None @@ -268,7 +269,8 @@ class Test(metaclass=abc.ABCMeta): return False return self.check_fn(p) - def set_general_options(self, delay=None, inc_pn=None): + def set_general_options(self, delay=None, inc_pn=None, pre_delay=None): + self.pre_delay = pre_delay self.delay = delay self.inc_pn = inc_pn