Skip to content

Commit

Permalink
tests: remove unused refspec config
Browse files Browse the repository at this point in the history
The test9.yml file is no longer used in any test. By that, drop it.
While doing so, renumber the higher-numbered tests.

Signed-off-by: Felix Moessbauer <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
fmoessbauer authored and jan-kiszka committed May 24, 2024
1 parent 9234855 commit ae28ef7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
4 changes: 2 additions & 2 deletions tests/test_refspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def test_branch_and_tag(monkeykas, tmpdir):
shutil.copytree('tests/test_refspec', tdir)
monkeykas.chdir(tdir)
with pytest.raises(RepoRefError):
kas.kas(['checkout', 'test10.yml'])
kas.kas(['checkout', 'test9.yml'])

with pytest.raises(RepoRefError):
kas.kas(['checkout', 'test11.yml'])
kas.kas(['checkout', 'test10.yml'])
9 changes: 4 additions & 5 deletions tests/test_refspec/test10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ header:
repos:
this:

evolve:
url: https://repo.mercurial-scm.org/evolve/
type: hg
branch: stable
commit: '6634:991cbf0f66f2'
kas:
url: https://github.com/siemens/kas.git
tag: 3.0.1
branch: master
10 changes: 0 additions & 10 deletions tests/test_refspec/test11.yml

This file was deleted.

9 changes: 5 additions & 4 deletions tests/test_refspec/test9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ header:
repos:
this:

bitbake:
url: https://github.com/openembedded/bitbake.git
branch: '2.2'
commit: 191e6eb2bceb467c97e315301f1f64722cf0e976
evolve:
url: https://repo.mercurial-scm.org/evolve/
type: hg
branch: stable
commit: '6634:991cbf0f66f2'

0 comments on commit ae28ef7

Please sign in to comment.