Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_process_annex_info_batch: fix test for git-annex 20180719 #6

Merged

Conversation

Ma27
Copy link
Contributor

@Ma27 Ma27 commented Aug 15, 2018

Since git-annex 20180719 the git-annex info command displays UUID and
description when a repository is identified by uuid.

This broke the test_process_annex_info_batch case which parses the
output of git-annex info output.

See https://git-annex.branchable.com/news/version_6.20180719/

Since git-annex 20180719 the `git-annex info` command displays UUID and
description when a repository is identified by uuid.

This broke the test_process_annex_info_batch case which parses the
output of `git-annex info` output.

See https://git-annex.branchable.com/news/version_6.20180719/
@alpernebbi alpernebbi merged commit 7fb27a5 into alpernebbi:master Aug 15, 2018
@alpernebbi
Copy link
Owner

Thanks for the fix!

I would've preferred to update the reference text with a working version, but the new format has UUID and machine names in them, hard to reproduce across runs/machines. Especially when the format is not what I'm testing for.

@Ma27 Ma27 deleted the fix-testcase-with-git-annex-201807 branch August 15, 2018 15:18
@Ma27
Copy link
Contributor Author

Ma27 commented Aug 15, 2018

but the new format has UUID and machine names in them, hard to reproduce across runs/machines

agreed. This was the easiest fix ATM to remain compatible with the latest git-annex releases:)

Ma27 added a commit to Ma27/nixpkgs that referenced this pull request Aug 16, 2018
`git-annex` version 6.20180719 enhances the output of `git-annex info`
with a description and UUID of the repository which broke the testcase
`test_process_annex_info_batch` which parses the output of the info
command.

The testcase has been fixed accordingly and the patch was filed upstream
here: alpernebbi/git-annex-adapter#6

I rechecked the functionality in a simple python environment with the
following expression:

```
with import ./. {};
python3.withPackages (ps: with ps; [ git-annex-adapter ])
```

Furthermore I tested the main functionality in a Python REPL within the environment.

The Darwin patch fixes tests that rely on `rev`, a binary which is
distributed in the `utillinux` package and not available on Nix with
Darwin.

To make the purpose of the patches for future contributors clear I
documented the purpose for each patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants