Skip to content

Commit

Permalink
test: add status test for nested git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jkloetzke committed Jul 1, 2023
1 parent 51dea50 commit 2c84a73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/test_input_gitscm_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ def testOrphanedOk(self):
s = self.statusGitScm({ 'tag' : 'v1.1' })
self.assertEqual(s.flags, set())

def testNestedTagOk(self):
self.callGit('git fetch origin tag v1.1', cwd=self.repodir_local)
self.callGit('git tag -a -m nested nested v1.1', cwd=self.repodir_local)
self.callGit('git tag -a -m double double nested', cwd=self.repodir_local)
self.callGit('git checkout tags/double', cwd=self.repodir_local)
s = self.statusGitScm({ 'tag' : 'double' })
self.assertEqual(s.flags, set())


class TestSubmodulesStatus(TestCase):

Expand Down

0 comments on commit 2c84a73

Please sign in to comment.