aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xm-test/tests/destroy/06_destroy_dom0_neg.py
blob: a2899438f8912e0a951adb8f3e8ef6e4ee9fa798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python

# Copyright (C) International Business Machines Corp., 2005
# Author: Li Ge <lge@us.ibm.com>

import re

from XmTestLib import *

status, output = traceCommand("xm destroy 0")
if status == 0:
    FAIL("xm destroy returned bad status, expected non 0, status is: %i" % status)
elif not re.search("Error", output):
    FAIL("xm destroy returned bad output, expected Error:, output is: %s" % output)