Browse Source

use short device name for tests

update order and content of default test block devices
master
lars 14 years ago
parent
commit
0eccca7d22
  1. 3
      src/cryptobox/tests/base.py
  2. 2
      src/cryptobox/tests/tools.py

3
src/cryptobox/tests/base.py

@ -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

2
src/cryptobox/tests/tools.py

@ -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

Loading…
Cancel
Save