You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by be...@apache.org on 2022/01/12 18:31:12 UTC

[buildstream] 02/02: repo/*: Make the Repo implementation have the same __init__ params as Repo

This is an automated email from the ASF dual-hosted git repository.

benschubert pushed a commit to branch bschubert/misc-cleanups
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 1098a7b16d63c1d367c1b5a3c5dcde4464c4820f
Author: Benjamin Schubert <co...@benschubert.me>
AuthorDate: Wed Jan 12 18:30:10 2022 +0000

    repo/*: Make the Repo implementation have the same __init__ params as Repo
---
 tests/testutils/repo/bzr.py | 2 +-
 tests/testutils/repo/git.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/testutils/repo/bzr.py b/tests/testutils/repo/bzr.py
index b698341..7421be8 100644
--- a/tests/testutils/repo/bzr.py
+++ b/tests/testutils/repo/bzr.py
@@ -7,7 +7,7 @@ from buildstream.testing._utils.site import BZR, BZR_ENV, HAVE_BZR
 
 
 class Bzr(Repo):
-    def __init__(self, directory, subdir):
+    def __init__(self, directory, subdir="repo"):
         if not HAVE_BZR:
             pytest.skip("bzr is not available")
         super().__init__(directory, subdir)
diff --git a/tests/testutils/repo/git.py b/tests/testutils/repo/git.py
index 1deca3f..02fe878 100644
--- a/tests/testutils/repo/git.py
+++ b/tests/testutils/repo/git.py
@@ -9,7 +9,7 @@ from buildstream.testing._utils.site import GIT, GIT_ENV, HAVE_GIT
 
 
 class Git(Repo):
-    def __init__(self, directory, subdir):
+    def __init__(self, directory, subdir="repo"):
         if not HAVE_GIT:
             pytest.skip("git is not available")