Skip to content

Commit

Permalink
Merge pull request yadm-dev#311 from erijo/test-upgrade-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLocehiliosan committed Feb 15, 2021
2 parents a8e5b20 + 990b4ce commit 1461b1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def run_version(version, *args, check_stderr=True):
if submodule:
# When upgrading via 2.5.0 we can't have a submodule that's been added
# after being cloned as 2.5.0 fails the upgrade in that case.
can_upgraded_cloned_submodule = '2.5.0' not in versions[1:]
if can_upgraded_cloned_submodule:
can_upgrade_cloned_submodule = '2.5.0' not in versions[1:]
if can_upgrade_cloned_submodule:
# Check out a repo and then add it as a submodule
run = runner(['git', '-C', str(home), 'clone', str(ext_repo), 'b'])
assert run.success
Expand Down Expand Up @@ -92,7 +92,7 @@ def run_version(version, *args, check_stderr=True):
run = run_version(version, 'upgrade', check_stderr=not submodule)
if submodule:
lines = run.err.splitlines()
if can_upgraded_cloned_submodule:
if can_upgrade_cloned_submodule:
assert 'Migrating git directory of' in lines[0]
assert str(home.join('b/.git')) in lines[1]
assert str(yadm_dir.join('repo.git/modules/b')) in lines[2]
Expand All @@ -108,7 +108,7 @@ def run_version(version, *args, check_stderr=True):
assert run.out == 'some data'

if submodule:
if can_upgraded_cloned_submodule:
if can_upgrade_cloned_submodule:
assert home.join('b/afile').read() == 'some data'
assert home.join('a/afile').read() == 'some data'
assert home.join('c/afile').read() == 'some data'
Expand Down

0 comments on commit 1461b1a

Please sign in to comment.