Skip to content

Commit afc58b8

Browse files
committed
Fix failing test on OSX.
THe `cat ... | wc -l` command on Mac has leading spaces in its output, and was causing these tests to fail. I may come up with a better fix when I do a full Bash review after the 0.4.0 release.
1 parent e0241a9 commit afc58b8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/branch-rev-list-one-path.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ is "$(
3131
"Created branch 'subrepo/bar' and worktree '.git/tmp/subrepo/bar'." \
3232
"subrepo branch command output is correct"
3333

34-
is "$(
34+
is $(
3535
cd $OWNER/foo
3636
git rev-list subrepo/bar | wc -l
37-
)" \
38-
"6" \
37+
) \
38+
6 \
3939
"We have only created commits for one of the paths"
4040

4141
done_testing

test/branch-rev-list.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ is "$(
3535
"Created branch 'subrepo/bar' and worktree '.git/tmp/subrepo/bar'." \
3636
"subrepo branch command output is correct"
3737

38-
is "$(
38+
is $(
3939
cd $OWNER/foo
4040
git rev-list subrepo/bar | wc -l
41-
)" \
42-
"5" \
41+
) \
42+
5 \
4343
"We have only created commits for one of the paths"
4444

4545
done_testing

0 commit comments

Comments
 (0)