ia64/xen-unstable

changeset 7753:fb4f48f0116e

Tweak the usage of mke2fs to be quiet, so that the XML reports
contain less garbage
author dan@guaranine.beaverton.ibm.com
date Thu Nov 10 11:47:38 2005 +0100 (2005-11-10)
parents 2bcfd776cb7f
children 7562dc888468
files tools/xm-test/tests/block-create/09_block_attach_and_dettach_device_check_data_pos.py tools/xm-test/tests/restore/04_restore_withdevices_pos.py
line diff
     1.1 --- a/tools/xm-test/tests/block-create/09_block_attach_and_dettach_device_check_data_pos.py	Thu Nov 10 11:47:34 2005 +0100
     1.2 +++ b/tools/xm-test/tests/block-create/09_block_attach_and_dettach_device_check_data_pos.py	Thu Nov 10 11:47:38 2005 +0100
     1.3 @@ -36,7 +36,9 @@ except ConsoleError, e:
     1.4      saveLog(console.getHistory())
     1.5      FAIL(str(e))
     1.6      
     1.7 -os.system("mkfs.ext2 -F /dev/ram1")
     1.8 +s, o = traceCommand("mke2fs -q -F /dev/ram1")
     1.9 +if s != 0:
    1.10 +    FAIL("mke2fs returned %i != 0" % s)
    1.11  
    1.12  for i in range(10):
    1.13  	status, output = traceCommand("xm block-attach %s phy:ram1 hda1 w" % domain.getName())
     2.1 --- a/tools/xm-test/tests/restore/04_restore_withdevices_pos.py	Thu Nov 10 11:47:34 2005 +0100
     2.2 +++ b/tools/xm-test/tests/restore/04_restore_withdevices_pos.py	Thu Nov 10 11:47:38 2005 +0100
     2.3 @@ -9,9 +9,9 @@ domain = XmTestDomain()
     2.4  
     2.5  domain.configAddDisk("phy:/dev/ram0", "hda1", "w")
     2.6  
     2.7 -s, o = traceCommand("mkfs /dev/ram0")
     2.8 +s, o = traceCommand("mke2fs -q /dev/ram0")
     2.9  if s != 0:
    2.10 -    FAIL("Unable to mkfs /dev/ram0 in dom0")
    2.11 +    FAIL("Unable to mke2fs /dev/ram0 in dom0")
    2.12  
    2.13  try:
    2.14      domain.start()