def start_platform(db, repository, delay=None):
"""
Function to check whether there is already running test for
which it check the kvm progress and if no running test then
it start a new test.
"""
from run import log, config
linux_kvm_name = config.get('KVM_LINUX_NAME', '')
win_kvm_name = config.get('KVM_WINDOWS_NAME', '')
kvm_test = Kvm.query.first()
if kvm_test is None:
start_new_test(db, repository, delay)
elif kvm_test.name is linux_kvm_name:
kvm_processor_linux(db, repository, delay)
elif kvm_test.name is win_kvm_name:
kvm_processor_windows(db, repository, delay)
return
评论列表
文章目录