Commit b1b9eb7b authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm: Wait for transition test to run for some time after, start

These tests do some work while being C/R-ed, so it make sense to
let them do some progress before doing so.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Acked-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
parent 6fe502dc
...@@ -363,6 +363,11 @@ class zdtm_test: ...@@ -363,6 +363,11 @@ class zdtm_test:
except: except:
raise test_fail_exc("start") raise test_fail_exc("start")
if not self.static():
# Wait less than a second to give the test chance to
# move into some semi-random state
time.sleep(random.random())
def kill(self, sig = signal.SIGKILL): def kill(self, sig = signal.SIGKILL):
self.__freezer.thaw() self.__freezer.thaw()
if self.__pid: if self.__pid:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment