Skip to content

Commit

Permalink
Add git-lfs version test
Browse files Browse the repository at this point in the history
This adds a test of the git-lfs version to be at least
2.10, when local file path support was added.
  • Loading branch information
kevinbreit-garmin authored and JoshuaWatt committed Sep 28, 2023
1 parent 2c0ee05 commit 62b71da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ci/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,22 @@ def test_top_dir(self):

self.assertEqual(oe_topdir, pyrex_topdir)

@skipIfOS("ubuntu", "14.04")
def test_git_lfs_version(self):
# Require the version that first supports local paths, so bitbake can
# reference a local path with lfs.
d = self.assertPyrexContainerCommand(
"git lfs version", quiet_init=True, capture=True
)
# Returns a User-Agent string git-lfs uses,
# which is in the format git-lfs/major.minor.patch (platform information)
self.assertTrue(d.startswith("git-lfs"))
(major, minor, patch) = (
int(x) for x in d.split("/")[1].split(" ")[0].split(".")
)

self.assertTrue(major > 2 or (major == 2 and minor >= 10))

def test_env_capture(self):
if self.pokyver < (4, 0):
varname = "BB_ENV_EXTRAWHITE"
Expand Down

0 comments on commit 62b71da

Please sign in to comment.