提交 148d8d86 编写于 作者: X Xu Tian

block_stream_reboot: add random sleep time

give random sleep time for sub-test initialization
Signed-off-by: NXu Tian <xutian@redhat.com>
上级 6f7b59fa
import time
import random
from autotest.client.shared import error, utils
from qemu.tests import blk_stream
......@@ -30,6 +32,7 @@ class BlockStreamReboot(blk_stream.BlockStream):
bg.start()
if bg.isAlive():
self.process.append(bg)
time.sleep(random.randint(25, 100))
def clean(self):
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册