예제 #1
0
 def test_start_target_modules_v2_5x(self):
     Globals().replace('lustre_version', '2.5')
     tgt = self.fs.new_target(self.srv1, 'mgt', 0, '/dev/root')
     action = StartTarget(tgt)
     self.assertEquals(sorted(action.needed_modules()),
                       ['ldiskfs', 'lustre'])
예제 #2
0
 def test_start_target_modules_v2_4x(self):
     Globals().replace('lustre_version', '2.4')
     tgt = self.fs.new_target(self.srv1, 'mgt', 0, self.block1)
     action = StartTarget(tgt)
     self.assertEqual(sorted(action.needed_modules()),
                      ['fsfilt_ldiskfs', 'lustre'])