@@ -394,7 +394,7 @@ This test harness library does the following things:
--debug (or -d), and --immediate (or -i) is given.
Do's & don'ts
--------------------------------------
+-------------
Here are a few examples of things you probably should and shouldn't do
when writing tests.
@@ -466,8 +466,7 @@ And here are the "don'ts:"
platform commands; just use '! cmd'. We are not in the business
of verifying that the world given to us sanely works.
- - Don't use Git upstream in the non-final position in a piped chain, as
- in:
+ - Don't feed the output of a git command to a pipe, as in:
git -C repo ls-files |
xargs -n 1 basename |
@@ -35,7 +35,7 @@ test_expect_success 'setup bare clone for server' '
test_expect_success 'do partial clone 1' '
git clone --no-checkout --filter=blob:none "file://$(pwd)/srv.bare" pc1 &&
- git -C pc1 rev-list --quiet --objects --missing=print >revs HEAD &&
+ git -C pc1 rev-list --quiet --objects --missing=print HEAD >revs &&
awk -f print_1.awk revs |
sed "s/?//" |
sort >observed.oids &&
@@ -93,8 +93,8 @@ test_expect_success 'verify diff causes dynamic object fetch' '
test_expect_success 'verify blame causes dynamic object fetch' '
git -C pc1 blame origin/master -- file.1.txt >observed.blame &&
test_cmp expect.blame observed.blame &&
- git -C pc1 rev-list --quiet --objects --missing=print >observed \
- master..origin/master &&
+ git -C pc1 rev-list --quiet --objects --missing=print \
+ master..origin/master >observed &&
test_line_count = 0 observed
'