controllers.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:sample-platform 作者: CCExtractor 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号