direct-io.hg

changeset 8374:bbe553187504

Replace calls to deprecated xm set-vcpus with calls to new shiny xm vcpu-set.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Thu Dec 15 13:55:05 2005 +0000 (2005-12-15)
parents 237b2a4d2499
children b62e324574d2
files tools/xm-test/tests/vcpu-disable/01_vcpu-disable_basic_pos.py
line diff
     1.1 --- a/tools/xm-test/tests/vcpu-disable/01_vcpu-disable_basic_pos.py	Thu Dec 15 13:49:19 2005 +0000
     1.2 +++ b/tools/xm-test/tests/vcpu-disable/01_vcpu-disable_basic_pos.py	Thu Dec 15 13:55:05 2005 +0000
     1.3 @@ -50,7 +50,7 @@ except DomainError, e:
     1.4      FAIL(str(e))
     1.5  
     1.6  # Disable VCPU 1
     1.7 -cmd = "xm set-vcpus %s 1" % domain.getName()
     1.8 +cmd = "xm vcpu-set %s 1" % domain.getName()
     1.9  status, output = safecmd(cmd)
    1.10  if check_status and status != 0:
    1.11      FAIL("\"%s\" returned invalid %i != 0" %(cmd,status))
    1.12 @@ -68,7 +68,7 @@ if domUvcpu1 is not None:
    1.13      FAIL("failed to disable VCPU1")
    1.14  
    1.15  # Enable VCPU 1
    1.16 -cmd = "xm set-vcpus %s 2" % domain.getName()
    1.17 +cmd = "xm vcpu-set %s 2" % domain.getName()
    1.18  status, output = safecmd(cmd)
    1.19  if check_status and status != 0:
    1.20      FAIL("\"%s\" returned invalid %i != 0" %(cmd,status))