03_shutdown_nonexist_neg.py
来自「xen 3.2.2 源码」· Python 代码 · 共 23 行
PY
23 行
#!/usr/bin/python# Copyright (C) International Business Machines Corp., 2005# Author: Paul Larson <pl@us.ibm.com># Description:# Positive Tests:# Test for xm shutdown# 1) call xm shutdown with a nonexistant domain, expect failureimport commandsfrom XmTestLib import *eyecatcher = "Error:"ret, output = traceCommand("xm shutdown 9999")where = output.find(eyecatcher)if (ret == 0): FAIL("xm shutdown returned invalid %i == 0" % ret)elif where == -1: FAIL("xm shutdown failed to report error for bad domid")
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?