Commit 47fbd181 authored by Ayush Tiwari's avatar Ayush Tiwari

Add different repo for tests

parent 7c9cd020
......@@ -462,8 +462,7 @@ to 'false'::
[git-clone]
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/tiwariayush/erp5
branch = pyodide
repository = https://lab.nexedi.com/tiwariayush/test_erp5
clone-submodules = false
Other options
......
......@@ -15,7 +15,7 @@ optionflags = (doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE)
GIT_REPOSITORY = 'https://lab.nexedi.com/nexedi/slapos.recipe.build.git'
BAD_GIT_REPOSITORY = 'http://git.erp5.org/repos/nowhere'
GIT_REPOSITORY_WITH_SUBMODULES = 'https://lab.nexedi.com/tiwariayush/erp5'
GIT_REPOSITORY_WITH_SUBMODULES = 'https://lab.nexedi.com/tiwariayush/test_erp5'
REVISION = '2566127'
def setUp(test):
......@@ -130,13 +130,12 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def test_clone_submodules_by_default(self, ignore_submodules=False):
recipe = self.makeGitCloneRecipe(
{'repository': GIT_REPOSITORY_WITH_SUBMODULES,
'branch': 'pyodide',
'clone_submodules': str(ignore_submodules).lower()}
)
recipe.install()
git_repository_path = os.path.join(self.parts_directory_path, "test")
self.assertTrue(os.path.exists(git_repository_path))
submodule_repo_path = os.path.join(git_repository_path, "bt5/erp5_notebook")
submodule_repo_path = os.path.join(git_repository_path, 'dir2', 'test_erp5_submodule')
# Check if the folder exists
self.assertTrue(os.path.exists(git_repository_path))
# Check is there is anything in submodule repository path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment