Ejemplo n.º 1
0
    def _generate_manifest(self):
        """Generates MANIFEST.json for imported tests.

        Runs the (newly-updated) manifest command if it's found, and then
        stages the generated MANIFEST.json in the git index, ready to commit.
        """
        _log.info('Generating MANIFEST.json')
        WPTManifest.generate_manifest(self.host, self.dest_path)
        manifest_path = self.fs.join(self.dest_path, 'MANIFEST.json')
        assert self.fs.exists(manifest_path)
        manifest_base_path = self.fs.normpath(
            self.fs.join(self.dest_path, '..', 'WPT_BASE_MANIFEST.json'))
        self.copyfile(manifest_path, manifest_base_path)
        self.chromium_git.add_list([manifest_base_path])
Ejemplo n.º 2
0
    def _generate_manifest(self, dest_path):
        """Generates MANIFEST.json for imported tests.

        Args:
            dest_path: Path to the destination WPT directory.

        Runs the (newly-updated) manifest command if it's found, and then
        stages the generated MANIFEST.json in the git index, ready to commit.
        """
        if 'css' in dest_path:
            # Do nothing for csswg-test.
            return
        _log.info('Generating MANIFEST.json')
        WPTManifest.generate_manifest(self.host, dest_path)
        self.run(['git', 'add', self.fs.join(dest_path, 'MANIFEST.json')])
Ejemplo n.º 3
0
    def _ensure_manifest(self):
        fs = self._filesystem
        external_path = self._webkit_finder.path_from_webkit_base(
            'LayoutTests', 'external')
        wpt_path = fs.join(external_path, 'wpt')
        manifest_path = fs.join(external_path, 'wpt', 'MANIFEST.json')
        base_manifest_path = fs.join(external_path, 'WPT_BASE_MANIFEST.json')

        if not self._filesystem.exists(manifest_path):
            fs.copyfile(base_manifest_path, manifest_path)

        self._printer.write_update(
            'Generating MANIFEST.json for web-platform-tests ...')

        # TODO(jeffcarp): handle errors
        WPTManifest.generate_manifest(self._port.host, wpt_path)
Ejemplo n.º 4
0
    def _generate_manifest(self, dest_path):
        """Generates MANIFEST.json for imported tests.

        Args:
            dest_path: Path to the destination WPT directory.

        Runs the (newly-updated) manifest command if it's found, and then
        stages the generated MANIFEST.json in the git index, ready to commit.
        """
        _log.info('Generating MANIFEST.json')
        WPTManifest.generate_manifest(self.host, dest_path)
        manifest_path = self.fs.join(dest_path, 'MANIFEST.json')
        assert self.fs.exists(manifest_path)
        manifest_base_path = self.fs.normpath(
            self.fs.join(dest_path, '..', 'WPT_BASE_MANIFEST.json'))
        self.copyfile(manifest_path, manifest_base_path)
        self.run(['git', 'add', manifest_base_path])