summaryrefslogtreecommitdiff
path: root/tests/unittests/test_curthooks.py
diff options
context:
space:
mode:
authorRyan Harper <[email protected]>2020-08-20 11:08:32 +0000
committerServer Team CI Bot <[email protected]>2020-08-20 11:08:32 +0000
commit1304d3eafd636160fd88a205a8f3e58d9f2d2b74 (patch)
treed87a60d3e7a1d606e44532941c9ce9fc80e2b0f7 /tests/unittests/test_curthooks.py
parent0f6a06baf8e697a16472abd239d42cbeb99cec48 (diff)
curthooks: uefi_find_grub_device_ids handle type:mount without path
When scanning a curtin storage config for efi mount entries we failed to handle the case where an entry does not contain the 'path' key. Curtin storage config type:mount does not require a 'path' element. Change to using .get('path') when looking for efi mount path. LP: #1892242
Diffstat (limited to 'tests/unittests/test_curthooks.py')
-rw-r--r--tests/unittests/test_curthooks.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unittests/test_curthooks.py b/tests/unittests/test_curthooks.py
index e45362ca..a6ae86e7 100644
--- a/tests/unittests/test_curthooks.py
+++ b/tests/unittests/test_curthooks.py
@@ -1725,6 +1725,12 @@ class TestUefiFindGrubDeviceIds(CiTestCase):
'fstype': 'fat32',
},
{
+ 'id': 'vdb-part2-swap_mount',
+ 'type': 'mount',
+ 'device': 'vdb-part2-swap_format',
+ 'options': '',
+ },
+ {
'id': 'vdb-part1_mount',
'type': 'mount',
'device': 'vdb-part1_format',