Esempio n. 1
0
    def get_buildvariant_name(self, major_minor_version):
        """Return buildvariant name.

        Wrapper around evergreen_conn.get_buildvariant_name().
        """

        return evergreen_conn.get_buildvariant_name(
            config=self.config, edition=self.edition, platform=self.platform,
            architecture=self.architecture, major_minor_version=major_minor_version)
Esempio n. 2
0
    def test_any_version(self):
        edition = "base"
        platform = "osx"
        architecture = "x86_64"
        major_minor_version = "any"

        buildvariant_name = evergreen_conn.get_buildvariant_name(
            config=self.config, edition=edition, platform=platform, architecture=architecture,
            major_minor_version=major_minor_version)
        self.assertEqual(buildvariant_name, "macos-any")
Esempio n. 3
0
    def test_buildvariant_not_found(self):
        edition = "test"
        platform = "test"
        architecture = "test"
        major_minor_version = "any"

        buildvariant_name = evergreen_conn.get_buildvariant_name(
            config=self.config, edition=edition, platform=platform, architecture=architecture,
            major_minor_version=major_minor_version)
        self.assertEqual(buildvariant_name, "")
Esempio n. 4
0
    def get_buildvariant_name(self, major_minor_version):
        """
        Return buildvariant name.

        Gets buildvariant name from evergreen_conn.get_buildvariant_name() -- if not user specified.
        """
        if self.variant:
            return self.variant

        return evergreen_conn.get_buildvariant_name(
            config=self.config,
            edition=self.edition,
            platform=self.platform,
            architecture=self.architecture,
            major_minor_version=major_minor_version)