use short device name for tests

update order and content of default test block devices
This commit is contained in:
lars 2008-01-14 20:48:23 +00:00
parent 4c634d3f9a
commit 0eccca7d22
2 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,8 @@ class CommonTestClass(unittest.TestCase):
self.blockdevice = testtools.find_test_device()
self.device = self.blockdevice + "1"
self.blockdevice_html = self.blockdevice.replace("/", "%2F")
self.device_html = self.device.replace("/", "%2F")
## the assumption is not always valid - but usually it is ok
self.device_html = os.path.basename(self.device)
## remove configuration files
## first: retrieve the settings directory

View File

@ -26,7 +26,7 @@ just inherit one of its classes and add some test functions
__revision__ = "$Id$"
TEST_DEVICE_LIST = ["hda", "hdb", "ubdb", "loop", "ubda", "udbc", "ubdd", "sd"]
TEST_DEVICE_LIST = ["ubdb", "loop", "ubda", "udbc", "ubdd", "sd"]
import os