Last active
January 14, 2017 05:18
-
-
Save thewoolleyman/4fdf9529e8fef5bbbf5a to your computer and use it in GitHub Desktop.
debugging git-duet test suite on my machine...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OK, after `brew uninstall git-duet` and manually adding absolute path to project bin | |
# (after `gb build`) the tests passed. Thought I had tried this before, but I guess not :) | |
± cw |master → origin ✓| → ls -al /usr/local/bin/git-duet* | |
ls: /usr/local/bin/git-duet*: No such file or directory | |
2015-11-23 21:54:11 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → export PATH=$PWD/bin:$PATH | |
2015-11-23 21:54:33 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → git-due | |
git-duet git-duet-commit git-duet-merge git-duet-rebase | |
git-duet-cherry-pick git-duet-install-hook git-duet-pre-commit git-duet-revert | |
2015-11-23 21:54:33 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → which git-duet-commit | |
/Users/pivotal/go/src/github.com/thewoolleyman/git-duet/bin/git-duet-commit | |
2015-11-23 21:54:45 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → bats test | |
✓ lists the alpha of the duet as author in the log | |
✓ lists the omega of the duet as committer in the log | |
✓ does not rotate author by default | |
✓ respects GIT_DUET_ROTATE_AUTHOR | |
✓ GIT_DUET_ROTATE_AUTHOR updates the correct config | |
✓ does not update mtime when rotating committer | |
✓ lists the soloist as author in the log | |
✓ lists the soloist as committer in the log | |
✓ does not include Signed-off-by when soloing | |
✓ rejects commits with no author | |
✓ writes mtime to config | |
✓ does not panic if no duet pair set | |
✓ rejects commits with stale soloists with hook | |
✓ rejects commits with stale duetists with hook | |
✓ writes the hook to the pre-commit hook file | |
✓ makes the pre-commit hook executable | |
✓ does not overwrite existing file | |
✓ lists the alpha of the duet as author in the log | |
✓ lists the omega of the duet as committer in the log | |
✓ is a merge commit | |
✓ does not rotate author by default | |
✓ respects GIT_DUET_ROTATE_AUTHOR | |
✓ GIT_DUET_ROTATE_AUTHOR updates the correct config | |
✓ does not update mtime when rotating committer | |
✓ lists the soloist as author in the log | |
✓ lists the soloist as committer in the log | |
✓ does not include Signed-off-by when soloing | |
✓ rejects commits with no author | |
✓ writes mtime to config | |
✓ does not panic if no duet pair set | |
✓ rejects commits with stale soloists with hook | |
✓ rejects commits with stale duetists with hook | |
✓ lists the alpha of the duet as author in the log | |
✓ lists the omega of the duet as committer in the log | |
✓ does not rotate author by default | |
✓ respects GIT_DUET_ROTATE_AUTHOR | |
✓ GIT_DUET_ROTATE_AUTHOR updates the correct config | |
✓ does not update mtime when rotating committer | |
✓ lists the soloist as author in the log | |
✓ lists the soloist as committer in the log | |
✓ does not include Signed-off-by when soloing | |
✓ rejects commits with no author | |
✓ writes mtime to config | |
✓ does not panic if no duet pair set | |
✓ sets the git user initials | |
✓ sets the git user name | |
✓ sets the git user email | |
✓ sets the git committer initials | |
✓ caches the git committer name | |
✓ caches the git committer email | |
✓ looks up external author email | |
✓ looks up external committer email | |
✓ uses custom email template for author when provided | |
✓ sets the git user email globally | |
✓ sets the git user initials globally | |
✓ sets the git user name globally | |
✓ sets the git committer email globally | |
✓ sets the git committer initials globally | |
✓ sets the git committer name globally | |
✓ output is displayed | |
✓ output is not displayed when quieted | |
✓ prints current config | |
✓ honors source when printing config | |
✓ output is displayed | |
✓ output is not displayed when quieted | |
✓ caches the git user initials as author initials | |
✓ caches the git user name as author name | |
✓ caches the git user email as author email | |
✓ builds email from id | |
✓ builds email from name | |
✓ builds email from two names | |
✓ looks up external email | |
✓ uses custom email template when provided | |
✓ unsets git committer email after duet | |
✓ unsets git committer initials after duet | |
✓ respects GIT_DUET_GLOBAL | |
✓ sets the git user email globally | |
✓ sets the git user name globally | |
✓ unsets git committer email after duet globally | |
✓ prints current config | |
✓ prints error output when commands fail | |
81 tests, 0 failures | |
2015-11-23 21:55:30 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
± cw |master → origin ✓| → env | grep GO | |
GOPATH=/Users/pivotal/go | |
2015-11-23 14:13:25 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → echo "gb build works and successfully builds binaries in bin/" | |
gb build works and successfully builds binaries in bin/ | |
2015-11-23 14:13:27 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → gb build | |
2015-11-23 14:13:32 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → ls -al bin | |
total 64400 | |
drwxr-xr-x 11 pivotal staff 374 Nov 23 09:38 . | |
drwxr-xr-x 17 pivotal staff 578 Nov 23 09:38 .. | |
-rwxr-xr-x 1 pivotal staff 4693952 Nov 20 11:55 git-duet | |
-rwxr-xr-x 1 pivotal staff 3428016 Nov 23 09:38 git-duet-cherry-pick | |
-rwxr-xr-x 1 pivotal staff 3428016 Nov 20 11:55 git-duet-commit | |
-rwxr-xr-x 1 pivotal staff 3026704 Nov 20 11:55 git-duet-install-hook | |
-rwxr-xr-x 1 pivotal staff 3428064 Nov 20 16:25 git-duet-merge | |
-rwxr-xr-x 1 pivotal staff 3415136 Nov 20 11:55 git-duet-pre-commit | |
-rwxr-xr-x 1 pivotal staff 3427968 Nov 20 16:26 git-duet-rebase | |
-rwxr-xr-x 1 pivotal staff 3428016 Nov 20 11:55 git-duet-revert | |
-rwxr-xr-x 1 pivotal staff 4693904 Nov 20 11:55 git-solo | |
2015-11-23 14:13:37 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → echo "'go install ./...' as referenced in CONTRIBUTING.md doesn't work (and other stuff missing from there too, e.g. that you need gb, it's at the bottom of README.md)" | |
'go install ./...' as referenced in CONTRIBUTING.md doesn't work (and other stuff missing from there too, e.g. that you need gb, it's at the bottom of README.md) | |
2015-11-23 14:13:47 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → go install ./... | |
src/git-duet/git-duet/main.go:9:2: cannot find package "git-duet" in any of: | |
/usr/local/Cellar/go/1.5.1/libexec/src/git-duet (from $GOROOT) | |
/Users/pivotal/go/src/git-duet (from $GOPATH) | |
src/git-duet/git-duet-cherry-pick/main.go:7:2: cannot find package "git-duet/internal/cmd" in any of: | |
/usr/local/Cellar/go/1.5.1/libexec/src/git-duet/internal/cmd (from $GOROOT) | |
/Users/pivotal/go/src/git-duet/internal/cmd (from $GOPATH) | |
src/git-duet/git-duet-cherry-pick/main.go:8:2: cannot find package "git-duet/internal/cmdrunner" in any of: | |
/usr/local/Cellar/go/1.5.1/libexec/src/git-duet/internal/cmdrunner (from $GOROOT) | |
/Users/pivotal/go/src/git-duet/internal/cmdrunner (from $GOPATH) | |
2015-11-23 14:13:55 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → echo "and 'bats test' fails on some of the tests - even when I tried to make sure the executables were on the path" | |
and 'bats test' fails on some of the tests - even when I tried to make sure the executables were on the path | |
2015-11-23 14:14:43 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → bats test | |
✓ lists the alpha of the duet as author in the log | |
✓ lists the omega of the duet as committer in the log | |
✓ does not rotate author by default | |
✓ respects GIT_DUET_ROTATE_AUTHOR | |
✓ GIT_DUET_ROTATE_AUTHOR updates the correct config | |
✓ does not update mtime when rotating committer | |
✓ lists the soloist as author in the log | |
✓ lists the soloist as committer in the log | |
✓ does not include Signed-off-by when soloing | |
✓ rejects commits with no author | |
✓ writes mtime to config | |
✓ does not panic if no duet pair set | |
✓ rejects commits with stale soloists with hook | |
✓ rejects commits with stale duetists with hook | |
✓ writes the hook to the pre-commit hook file | |
✓ makes the pre-commit hook executable | |
✓ does not overwrite existing file | |
✗ lists the alpha of the duet as author in the log | |
(in test file test/git-duet-merge.bats, line 10) | |
`git duet-merge new_branch' failed | |
[master (root-commit) d2b1ad5] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'new_branch' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ lists the omega of the duet as committer in the log | |
(in test file test/git-duet-merge.bats, line 21) | |
`git duet-merge new_branch -q' failed | |
[master (root-commit) d2b1ad5] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'new_branch' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ is a merge commit | |
(in test file test/git-duet-merge.bats, line 32) | |
`git duet-merge new_branch -q' failed | |
[master (root-commit) d2b1ad5] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'new_branch' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ does not rotate author by default | |
(in test file test/git-duet-merge.bats, line 43) | |
`git duet-merge branch_one -q' failed | |
[master (root-commit) d78794d] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ respects GIT_DUET_ROTATE_AUTHOR | |
(in test file test/git-duet-merge.bats, line 68) | |
`GIT_DUET_ROTATE_AUTHOR=1 git duet-merge branch_one -q' failed | |
[master (root-commit) d78794d] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ GIT_DUET_ROTATE_AUTHOR updates the correct config | |
(in test file test/git-duet-merge.bats, line 94) | |
`GIT_DUET_ROTATE_AUTHOR=1 git duet-merge branch_one -q' failed | |
[master (root-commit) d78794d] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
✗ does not update mtime when rotating committer | |
(in test file test/git-duet-merge.bats, line 108) | |
`GIT_DUET_ROTATE_AUTHOR=1 git duet-merge branch_one -q' failed | |
[master (root-commit) d78794d] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ lists the soloist as author in the log | |
(in test file test/git-duet-merge.bats, line 121) | |
`git duet-merge branch_one -q' failed | |
[master (root-commit) c3c73d9] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ lists the soloist as committer in the log | |
(in test file test/git-duet-merge.bats, line 133) | |
`git duet-merge branch_one -q' failed | |
[master (root-commit) c3c73d9] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ does not include Signed-off-by when soloing | |
(in test file test/git-duet-merge.bats, line 145) | |
`git duet-merge branch_one -q' failed | |
[master (root-commit) c3c73d9] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✓ rejects commits with no author | |
✗ writes mtime to config | |
(in test file test/git-duet-merge.bats, line 167) | |
`git duet-merge branch_one -q' failed | |
[master (root-commit) 0c56b0c] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
GIT_AUTHOR_NAME='Jane Doe' | |
GIT_AUTHOR_EMAIL='[email protected]' | |
GIT_COMMITTER_NAME='Frances Bar' | |
GIT_COMMITTER_EMAIL='[email protected]' | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
git: 'duet-merge' is not a git command. See 'git --help'. | |
fatal: No such section! | |
✗ does not panic if no duet pair set | |
(from function `flunk' in file test/test_helper.bash, line 102, | |
from function `assert_line' in file test/test_helper.bash, line 145, | |
in test file test/git-duet-merge.bats, line 180) | |
`assert_line "git-author not set"' failed | |
[master (root-commit) 0c56b0c] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
expected line `git-author not set' | |
fatal: No such section! | |
✗ rejects commits with stale soloists with hook | |
(from function `flunk' in file test/test_helper.bash, line 102, | |
from function `assert_line' in file test/test_helper.bash, line 145, | |
in test file test/git-duet-merge.bats, line 202) | |
`assert_line "your git duet settings are stale"' failed | |
[master (root-commit) 0c56b0c] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
expected line `your git duet settings are stale' | |
fatal: No such section! | |
✗ rejects commits with stale duetists with hook | |
(from function `flunk' in file test/test_helper.bash, line 102, | |
from function `assert_line' in file test/test_helper.bash, line 145, | |
in test file test/git-duet-merge.bats, line 223) | |
`assert_line "your git duet settings are stale"' failed | |
[master (root-commit) 3ad7448] test commit for reverting | |
1 file changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 foo | |
Switched to a new branch 'branch_one' | |
Switched to branch 'master' | |
expected line `your git duet settings are stale' | |
fatal: No such section! | |
✓ lists the alpha of the duet as author in the log | |
✓ lists the omega of the duet as committer in the log | |
✓ does not rotate author by default | |
✓ respects GIT_DUET_ROTATE_AUTHOR | |
✓ GIT_DUET_ROTATE_AUTHOR updates the correct config | |
✓ does not update mtime when rotating committer | |
✓ lists the soloist as author in the log | |
✓ lists the soloist as committer in the log | |
✓ does not include Signed-off-by when soloing | |
✓ rejects commits with no author | |
✓ writes mtime to config | |
✓ does not panic if no duet pair set | |
✓ sets the git user initials | |
✓ sets the git user name | |
✓ sets the git user email | |
✓ sets the git committer initials | |
✓ caches the git committer name | |
✓ caches the git committer email | |
✓ looks up external author email | |
✓ looks up external committer email | |
✓ uses custom email template for author when provided | |
✓ sets the git user email globally | |
✓ sets the git user initials globally | |
✓ sets the git user name globally | |
✓ sets the git committer email globally | |
✓ sets the git committer initials globally | |
✓ sets the git committer name globally | |
✓ output is displayed | |
✓ output is not displayed when quieted | |
✓ prints current config | |
✓ honors source when printing config | |
✓ output is displayed | |
✓ output is not displayed when quieted | |
✓ caches the git user initials as author initials | |
✓ caches the git user name as author name | |
✓ caches the git user email as author email | |
✓ builds email from id | |
✓ builds email from name | |
✓ builds email from two names | |
✓ looks up external email | |
✓ uses custom email template when provided | |
✓ unsets git committer email after duet | |
✓ unsets git committer initials after duet | |
✓ respects GIT_DUET_GLOBAL | |
✓ sets the git user email globally | |
✓ sets the git user name globally | |
✓ unsets git committer email after duet globally | |
✓ prints current config | |
✓ prints error output when commands fail | |
81 tests, 14 failures | |
2015-11-23 14:15:11 ☆ |ruby-2.1.6| prudence in ~/go/src/github.com/thewoolleyman/git-duet | |
± cw |master → origin ✓| → |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment