示例#1
0
 def test_build_builddir(self):
     build_dir = '.kunit'
     jobs = kunit.get_default_jobs()
     kunit.main(['build', '--build_dir', build_dir], self.linux_source_mock)
     self.linux_source_mock.build_kernel.assert_called_once_with(
         False, jobs, build_dir, None)
示例#2
0
 def test_build_passes_args_pass(self):
     kunit.main(['build'], self.linux_source_mock)
     self.assertEqual(self.linux_source_mock.build_reconfig.call_count, 1)
     self.linux_source_mock.build_kernel.assert_called_once_with(
         False, kunit.get_default_jobs(), '.kunit', None)
     self.assertEqual(self.linux_source_mock.run_kernel.call_count, 0)