Exemplo n.º 1
0
 def test_install_update(self):
     PackageInstaller(SNAPPY_PKG_NAME, SNAPPY_VERSION, SNAPPY_PLATFORM,
                      DIR_INSTALL, DIR_DEPOT).install()
     assert os.path.exists(SNAPPY_INSTALDIR_ETC_MF)
     PackageInstaller(SNAPPY_PKG_NAME, SNAPPY_VERSION, SNAPPY_PLATFORM,
                      DIR_INSTALL, DIR_DEPOT).install()
     assert os.path.exists(SNAPPY_INSTALDIR_ETC_MF)
     assert CommonUtils.get_filecount_for_dir_tree(SNAPPY_INSTALLDIR) == 17
Exemplo n.º 2
0
 def test_depot_update(self):
     self._add_snappy_to_depot()
     self._update_snappy_in_depot()
     assert CommonUtils.get_filecount_for_dir_tree(
         DIR_DEPOT_DATAFILES) == 14