File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -115,21 +115,14 @@ def test_all(self):
115115 on = BlockDev .swap_swapstatus (self .loop_dev )
116116 self .assertFalse (on )
117117
118- def test_mkswap_with_label (self ):
118+ def test_mkswap_with_label_uuid (self ):
119119 """Verify that mkswap with label works as expected"""
120120
121- succ = BlockDev .swap_mkswap (self .loop_dev , "BlockDevSwap" , None )
121+ succ = BlockDev .swap_mkswap (self .loop_dev , label = "BlockDevSwap" , uuid = self . test_uuid )
122122 self .assertTrue (succ )
123123
124124 _ret , out , _err = run_command ("blkid -ovalue -sLABEL -p %s" % self .loop_dev )
125125 self .assertEqual (out , "BlockDevSwap" )
126-
127- def test_mkswap_with_uuid (self ):
128- """Verify that mkswap with uuid works as expected"""
129-
130- succ = BlockDev .swap_mkswap (self .loop_dev , uuid = self .test_uuid )
131- self .assertTrue (succ )
132-
133126 _ret , out , _err = run_command ("blkid -ovalue -sUUID -p %s" % self .loop_dev )
134127 self .assertEqual (out , self .test_uuid )
135128
You can’t perform that action at this time.
0 commit comments