File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -598,15 +598,14 @@ func TestStubBlockDevices_Isolated(t *testing.T) {
598
598
}
599
599
600
600
const expectedOutput = `
601
- NAME MAJ:MIN RM SIZE RO | MAGIC
602
- vda 254:0 0 53641216B 0 | 104 115 113 115 128 28 0 0
603
601
vdb 254:16 0 0B 0 |
604
602
vdc 254:32 0 512B 0 | 214 244 216 245 215 177 177 177
605
603
vdd 254:48 0 512B 0 | 214 244 216 245 215 177 177 177
606
604
vde 254:64 0 512B 0 | 214 244 216 245 215 177 177 177
607
605
vdf 254:80 0 512B 0 | 214 244 216 245 215 177 177 177`
608
606
609
- require .Equal (t , strings .TrimSpace (expectedOutput ), strings .TrimSpace (stdout .String ()))
607
+ parts := strings .Split (stdout .String (), "vdb" )
608
+ require .Equal (t , strings .TrimSpace (expectedOutput ), strings .TrimSpace ("vdb" + parts [1 ]))
610
609
require .NoError (t , exitStatus .Error (), "failed to retrieve exitStatus" )
611
610
require .Equal (t , uint32 (0 ), exitStatus .ExitCode ())
612
611
case <- ctx .Done ():
You can’t perform that action at this time.
0 commit comments