def test_create_dev_distrib(self):
     mdist = ariane.distribution_service.get_unique({"version": "0.6.4-SNAPSHOT"})
     if not isinstance(mdist, modelAndServices.Distribution):
         print("ERROR: mdist is not distribution")
         return
     ReleaseTools.create_distrib_copy(mdist)
     print("copy created")
    def test_show_tags(self):
        dist = ariane.distribution_service.get_unique({"version": "0.7.1"})
        dpath = ReleaseTools.get_distrib_path(dist)
        tags = subprocess.check_output("git tag", shell=True, cwd=os.path.join(project_path, dpath))
        tags = tags.decode()
        print("*** List of tags: ***")
        print("distrib: " + tags.replace("\n", ", "))

        mylist = ariane.component_service.get_all(dist)
        mylist.extend(ariane.plugin_service.get_all(dist))
        for m in mylist:
            tags = subprocess.check_output("git tag", shell=True, cwd=os.path.join(project_path, m.get_directory_name()))
            tags = tags.decode()
            print("component/plugin: " + m.name + " " + tags.replace("\n", ", "))
 def test_remove_genuine_copy(self):
     ReleaseTools.remove_genuine_distrib()