Skip to content

Commit

Permalink
Make test conditional on platform support
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Feb 6, 2023
1 parent f1526d7 commit 7aa8977
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions datalad_ebrains/tests/test_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ def test_shallow_clone(tmp_path):
result_renderer='disabled',
)
repo = Dataset(tmp_path).repo
check_branch = repo.get_corresponding_branch() \
or repo.get_active_branch()
log_cmd = ['log', '--oneline', check_branch]
# the desired version, plus the create-dataset-commit
assert 2 == len(list(repo.call_git_items_(log_cmd)))
if not repo.is_managed_branch():
# not ready for crippled FS
# https://github.com/datalad/datalad-ebrains/issues/55
check_branch = repo.get_corresponding_branch() \
or repo.get_active_branch()
log_cmd = ['log', '--oneline', check_branch]
# the desired version, plus the create-dataset-commit
assert 2 == len(list(repo.call_git_items_(log_cmd)))
# EBRAIN landing page states: 1678 files -- we must match that number
assert_result_count(res, 1678, type='file')

Expand Down

0 comments on commit 7aa8977

Please sign in to comment.