testsuite: Check forced removal of LUKS encrypted device
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 24 Oct 2010 13:31:51 +0000 (15:31 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 24 Oct 2010 13:31:51 +0000 (15:31 +0200)
commit5cf279606c8163b8cf65906b2028db711fba8f0b
tree1b0d511ce60a8408732183084d91d621e97213f9
parentdd48c454f14b6063f8584631f04bf4528969a82b
testsuite: Check forced removal of LUKS encrypted device

Add two new methods remove_device() and readd_devices() which simulate device
removal and readdition.

Add new test case for force-removal handling of a mounted LUKS device: verify
that it cleans up properly and device can be remounted again afterwards.

This reproduces the cleanup failure in bug 30332 and verifies that the fix for
tihs (16529b69f) works.
tests/run