=== modified file 'tests/integration.txt'
@@ -1,5 +1,5 @@
-A few integration tests we can run while the migration to python is not
-complete. They probably require root or access to specific block devices so
+A few integration tests we can run to test things on a higher level.
+These will probably require root or access to specific block devices so
they are not meant to be automated.
# This should print nothing to stdout but will unpack the given binary
@@ -10,18 +10,19 @@
# Partition (for real!) /dev/sdb for a beagle board and return the devices
# for the boot and root partitions.
>>> from linaro_media_create.partitions import Media, setup_partitions
- >>> setup_partitions('beagle', Media('/dev/sdb'), 32, None, 'boot',
- ... 'root', 'ext3', '2e82008e-1af3-4699-8521-3bf5bac1e67a', True,
- ... True, True)
+ >>> from linaro_media_create.boards import board_configs
+ >>> setup_partitions(
+ ... board_configs['beagle'], Media('/dev/sdb'), None, 'boot',
+ ... 'root', 'ext3', True, True, True)
Checking that no-one is using this disk right now
...
('/dev/sdb1', '/dev/sdb2')
# Partition /tmp/beagle.img for a beagle board and return the loopback
# devices for the boot and root partitions.
- >>> setup_partitions('beagle', Media('/tmp/beagle.img'), 32, '2G', 'boot',
- ... 'root', 'ext3', '2e82008e-1af3-4699-8521-3bf5bac1e67a', True,
- ... True, True)
+ >>> setup_partitions(
+ ... board_configs['beagle'], Media('/tmp/beagle.img'), '2G', 'boot',
+ ... 'root', 'ext3', True, True, True)
Warning: /tmp/beagle.img is not a block device
...
('/dev/loop0', '/dev/loop1')