Ejemplo n.º 1
0
 def test_defaults(self):
     defaults = roller.get_args([])
     assert defaults.verbose is False
     assert defaults.new_version == roller.get_latest_kernel_version()
     assert defaults.new_revision is None
     assert defaults.config_version == roller.get_current_kernel_version()
     assert defaults.config_revision == 'current'
     assert defaults.skip_install is False
     assert defaults.build_dir == '/tmp'
     assert defaults.config_dir is None
Ejemplo n.º 2
0
 def test_get_latest_kernel_version(self):
     stable = roller.get_latest_kernel_version(kind='stable')
     longterm = roller.get_latest_kernel_version(kind='longterm')
     mainline = roller.get_latest_kernel_version(kind='mainline')
     assert stable != longterm
     assert 'rc' in mainline