def setUpClass(self):
        AbstractFakeRosBasedTest.setUpClass()

        # create another repo in git
        self.git_path2 = os.path.join(self.test_root_path, "gitrepo2")
        _create_git_repo(self.git_path2)
        self.simple_changed_uri_rosinstall = os.path.join(self.test_root_path, "simple_changed_uri.rosinstall")
        # same local name for gitrepo, different uri
        _create_yaml_file(
            [
                _create_config_elt_dict("git", "ros", self.ros_path),
                _create_config_elt_dict("git", "gitrepo", self.git_path2),
            ],
            self.simple_changed_uri_rosinstall,
        )

        # create a broken config
        self.broken_rosinstall = os.path.join(self.test_root_path, "broken.rosinstall")
        _create_yaml_file(
            [
                _create_config_elt_dict("other", self.ros_path),
                _create_config_elt_dict("hg", "hgrepo", self.hg_path + "invalid"),
            ],
            self.broken_rosinstall,
        )
Ejemplo n.º 2
0
    def setUpClass(self):
        AbstractFakeRosBasedTest.setUpClass()

        # create another repo in git

        self.tar_path = os.path.join(self.test_root_path, "tarfile.tar.bz2")
        _create_tar_file(self.tar_path)

        self.simple_tar_rosinstall = os.path.join(self.test_root_path, "simple_changed_uri.rosinstall")
        # same local name for gitrepo, different uri
        _create_yaml_file([_create_config_elt_dict("tar", "temptar", uri=self.tar_path, version='temptar')],
                          self.simple_tar_rosinstall)
Ejemplo n.º 3
0
    def setUpClass(self):
        AbstractFakeRosBasedTest.setUpClass()

        # create another repo in git
        self.git_path2 = os.path.join(self.test_root_path, "gitrepo2")
        _create_git_repo(self.git_path2)
        self.simple_changed_uri_rosinstall = os.path.join(
            self.test_root_path, "simple_changed_uri.rosinstall")
        # same local name for gitrepo, different uri
        _create_yaml_file([
            _create_config_elt_dict("git", "ros", self.ros_path),
            _create_config_elt_dict("git", "gitrepo", self.git_path2)
        ], self.simple_changed_uri_rosinstall)

        # create a broken config
        self.broken_rosinstall = os.path.join(self.test_root_path,
                                              "broken.rosinstall")
        _create_yaml_file([
            _create_config_elt_dict("other", self.ros_path),
            _create_config_elt_dict("hg", "hgrepo", self.hg_path + "invalid")
        ], self.broken_rosinstall)