⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 02_console_baddom_neg.py

📁 xen虚拟机源代码安装包
💻 PY
字号:
#!/usr/bin/python# Copyright (C) International Business Machines Corp., 2005# Author: Li Ge <lge@us.ibm.com># Test Description:# Negative Tests:# Test for attempting to connect to non existent domname, domid. Verify fail.import refrom XmTestLib import *status, output = traceCommand("xm console 5000")eyecatcher = "Error"where = output.find(eyecatcher)if status == 0:    FAIL("xm console returned invalid %i != 0" % status)elif where == -1:    FAIL("xm console failed to report error on bad domid")status, output = traceCommand("xm console NON_EXIST")eyecatcher = "Error"where = output.find(eyecatcher)if status == 0:    FAIL("xm console returned invalid %i != 0" % status)elif where == -1:    FAIL("xm console failed to report error on bad domname") 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -