Skip to content

Commit

Permalink
chore: rm submodules and do git clones for local fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Dec 17, 2023
1 parent 04cb761 commit 74c3e2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ hold
wip
.old
tests-old
# Tests run from tox
tests/utils/vcs/tackle-fixture-released/*

# These repos are cloned locally for testing
tests/utils/vcs/tackle-fixture-released
tests/utils/vcs/tackle-fixture-unreleased

# mkdocs.yml is generated
mkdocs.yml
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/vcs/test_utils_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def f(fixture: str = None):
# When pulling / in ci - the fixtures will be submodules. So we need to
# update them to have them available for copying
if not os.path.isdir(os.path.join(fixture, '.git')):
p = run_command('git submodule update')
p = run_command(f'git clone https://github.com/robcxyz/{fixture}')
stdout, stderr = p.communicate()
if p.returncode != 0:
raise Exception(f"Error in git submodule \n{stdout}\n{stderr}")
raise Exception(f"Error test setup clone \n{stdout}\n{stderr}")
shutil.copytree(fixture, os.path.join(tmp_path, 'robcxyz', fixture))
yield str(tmp_path)
finally:
Expand Down

0 comments on commit 74c3e2b

Please sign in to comment.