source: trunk/packages/xen-common/xen-common/tools/xm-test/tests/domname/01_domname_basic_pos.py @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/script
File size: 404 bytes
Line 
1#!/usr/bin/python
2
3# Copyright (C) International Business Machines Corp., 2005
4# Author: Dan Smith <danms@us.ibm.com>
5
6import re
7
8from XmTestLib import *
9
10status, output = traceCommand("xm domname 0")
11if status != 0:
12    FAIL("domname(0) returned invalid %i != 0" % status)
13elif output != "Domain-0":
14    if verbose:
15        print output
16    FAIL("domname(0) failed to return Domain-0 for domid 0")
17   
Note: See TracBrowser for help on using the repository browser.