06_list_nonroot.py
来自「xen虚拟机源代码安装包」· Python 代码 · 共 16 行
PY
16 行
#!/usr/bin/python# Copyright (C) International Business Machines Corp., 2005# Copyright (C) XenSource Ltd, 2005# Author: Ewan Mellor <ewan@xensource.com>from XmTestLib import *becomeNonRoot()status, output = traceCommand("xm list")eyecatcher = "Error: Most commands need root access"where = output.find(eyecatcher)if where == -1: FAIL("xm list: didn't see the root hint, saw %s" % output)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?