From: Stefan Berger Subject: [PATCH] [Xm-Test] Use xvda* device name instead of sdb* Date: Sun, 25 Feb 2007 23:43:29 -0500 Message-ID: <1172465009.2821.1.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-RGIqTC1URwoD/Z/gwqQ7" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Ewan Mellor List-Id: xen-devel@lists.xenproject.org --=-RGIqTC1URwoD/Z/gwqQ7 Content-Type: text/plain Content-Transfer-Encoding: 7bit Use xvda* device name instead of sdb* device inside guest domain. Signed-off-by: Stefan Berger --=-RGIqTC1URwoD/Z/gwqQ7 Content-Disposition: attachment; filename=test_use_xvda_not_sda_fix.diff Content-Type: text/x-patch; name=test_use_xvda_not_sda_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r 2c3a13993b0d tools/xm-test/tests/security-acm/06_security-acm_dom_block_attach.py --- a/tools/xm-test/tests/security-acm/06_security-acm_dom_block_attach.py Fri Feb 23 14:44:07 2007 +0000 +++ b/tools/xm-test/tests/security-acm/06_security-acm_dom_block_attach.py Sun Feb 25 23:41:22 2007 -0500 @@ -43,7 +43,7 @@ except ConsoleError, e: # Explicitly label the 1st resource ACMLabelResource(resource1, resourcelabel1) -block_utils.block_attach(domain, resource1, "sdb1") +block_utils.block_attach(domain, resource1, "xvda1") try: run1 = console.runCmd("cat /proc/partitions") @@ -54,10 +54,10 @@ ACMLabelResource(resource2, resourcelabe ACMLabelResource(resource2, resourcelabel2) #Cannot call block_attach here since we legally may fail the command status, output = traceCommand("xm block-attach %s %s %s w" % - (domain.getName(), resource2, "sdb2" )) + (domain.getName(), resource2, "xvda2" )) for i in range(10): - if block_utils.get_state(domain, "sdb2") == 4: + if block_utils.get_state(domain, "xvda2") == 4: break time.sleep(1) @@ -72,11 +72,11 @@ domain.closeConsole() # Stop the domain (nice shutdown) domain.stop() -if not re.search("sdb1",run1["output"]): - FAIL("Labeled device 'sdb1' is not actually connected to the domU") +if not re.search("xvda1",run1["output"]): + FAIL("Labeled device 'xvda1' is not actually connected to the domU") -if not re.search("sdb1",run2["output"]): - FAIL("Labeled device 'sdb1' has disappeared?!") +if not re.search("xvda1",run2["output"]): + FAIL("Labeled device 'xbvda1' has disappeared?!") -if re.search("sdb2",run2["output"]): - FAIL("Labeled device 'sdb2' is connected to the domU but should not be") +if re.search("xvda2",run2["output"]): + FAIL("Labeled device 'xvda2' is connected to the domU but should not be") --=-RGIqTC1URwoD/Z/gwqQ7 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-RGIqTC1URwoD/Z/gwqQ7--