📄 03_block-destroy_nonexist_neg.py
字号:
#!/usr/bin/python # Copyright (C) International Business Machines Corp., 2005# Author: Li Ge <lge@us.ibm.com># Negative Test: attempt removal from non-existent domain import re from XmTestLib import * status, output = traceCommand("xm block-detach 9999 769")eyecatcher = "Error:"where = output.find(eyecatcher)if status == 0: FAIL("xm block-detach returned invalid %i != 0" % status)elif where < 0: FAIL("xm block-detach failed to report error for non-existent domain")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -