aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-31 12:39:01 -0600
committerTim Harder <radhermit@gmail.com>2021-03-31 12:39:18 -0600
commit31672d0c32906d61ae4c919eef81d4993f4a53e6 (patch)
treec57da3c724251e081602439f6ecc1803d34091c2 /tests
parentpkgdev manifest: add -d/--distdir option for custom DISTDIR (diff)
downloadpkgdev-31672d0c32906d61ae4c919eef81d4993f4a53e6.tar.gz
pkgdev-31672d0c32906d61ae4c919eef81d4993f4a53e6.tar.bz2
pkgdev-31672d0c32906d61ae4c919eef81d4993f4a53e6.zip
tests: update git repo default branch name
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgdev_push.py8
-rw-r--r--tests/test_git.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/scripts/test_pkgdev_push.py b/tests/scripts/test_pkgdev_push.py
index 9a6c10c..cc13fb1 100644
--- a/tests/scripts/test_pkgdev_push.py
+++ b/tests/scripts/test_pkgdev_push.py
@@ -38,8 +38,8 @@ class TestPkgdevPushParseArgs:
"""Unknown arguments for ``pkgdev push`` are passed to ``git push``."""
git_repo = make_git_repo(repo.location)
with chdir(git_repo.path):
- options, _ = tool.parse_args(['push', 'origin', 'master'])
- assert options.push_args == ['origin', 'master']
+ options, _ = tool.parse_args(['push', 'origin', 'main'])
+ assert options.push_args == ['origin', 'main']
options, _ = tool.parse_args(['push', '-n', '--signed'])
assert '--dry-run' in options.push_args
assert '--signed' in options.push_args
@@ -82,8 +82,8 @@ class TestPkgdevPush:
self.child_git_repo.add_all('cat/pkg-0')
# set up parent repo as origin and push to it
self.child_git_repo.run(['git', 'remote', 'add', 'origin', self.parent_git_repo.path])
- self.child_git_repo.run(['git', 'push', '-u', 'origin', 'master'])
- self.child_git_repo.run(['git', 'remote', 'set-head', 'origin', 'master'])
+ self.child_git_repo.run(['git', 'push', '-u', 'origin', 'main'])
+ self.child_git_repo.run(['git', 'remote', 'set-head', 'origin', 'main'])
def test_push(self, capsys):
self.child_repo.create_ebuild('cat/pkg-1')
diff --git a/tests/test_git.py b/tests/test_git.py
index 4874d0b..d19189a 100644
--- a/tests/test_git.py
+++ b/tests/test_git.py
@@ -24,4 +24,4 @@ class TestGitRun:
def test_successful_run(self, git_repo):
with chdir(git_repo.path):
p = git.run('rev-parse', '--abbrev-ref', 'HEAD', stdout=subprocess.PIPE)
- assert p.stdout.strip() == 'master'
+ assert p.stdout.strip() == 'main'