<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/lib-patch-mode.sh, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2023-02-06T23:30:41Z</updated>
<entry>
<title>t/lib-patch-mode.sh: fix ignored exit codes</title>
<updated>2023-02-06T23:30:41Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2023-02-06T22:44:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=62f3a45bb49f9436f1cd754b02ac549b1f6514cf'/>
<id>urn:sha1:62f3a45bb49f9436f1cd754b02ac549b1f6514cf</id>
<content type='text'>
Fix code added in b319ef70a94 (Add a small patch-mode testing library,
2009-08-13) to use &amp;&amp;-chaining.

This avoids losing both the exit code of a "git" and the "cat"
processes.

This fixes cases where we'd have e.g. missed memory leaks under
SANITIZE=leak, this code doesn't leak now as far as I can tell, but I
discovered it while looking at leaks in related code.

For "verify_saved_head()" we could make use of "test_cmp_rev" with
some changes, but it uses "git rev-parse --verify", and this existing
test does not. I think it could safely use it, but let's avoid the
while-at-it change, and narrowly fix the exit code problem.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t: add tests for restore</title>
<updated>2019-05-07T04:04:48Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2019-04-25T09:45:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4df3ec6324ba78b9b28ce1ecb872594dd1bffa1c'/>
<id>urn:sha1:4df3ec6324ba78b9b28ce1ecb872594dd1bffa1c</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>lib-patch-mode tests: change from skip_all=* to prereq skip</title>
<updated>2010-08-18T19:43:23Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2010-08-13T20:40:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2f7b6a550008151a1d312b058c853cd7a61f9ab'/>
<id>urn:sha1:f2f7b6a550008151a1d312b058c853cd7a61f9ab</id>
<content type='text'>
Change this test to skip test with test prerequisites, and to do setup
work in tests. This improves the skipped statistics on platforms where
the test isn't run.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: Use skip_all=* to skip tests</title>
<updated>2010-07-09T00:53:12Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2010-07-08T01:16:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8344e866655cfae1f870d7e8d5046c1bdf08adf'/>
<id>urn:sha1:e8344e866655cfae1f870d7e8d5046c1bdf08adf</id>
<content type='text'>
Change tests to skip with skip_all=* + test_done instead of using say
+ test_done.

This is a follow-up to "tests: Skip tests in a way that makes sense
under TAP" (fadb5156e4). I missed these cases when prepearing that
patch, hopefully this is all of them.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/maint-fix-test-perm'</title>
<updated>2010-02-21T19:59:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-02-21T19:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=92de348948d59f797dd4f15d6a4558c0563203b1'/>
<id>urn:sha1:92de348948d59f797dd4f15d6a4558c0563203b1</id>
<content type='text'>
* jc/maint-fix-test-perm:
  lib-patch-mode.sh: Fix permission
  t6000lib: Fix permission
</content>
</entry>
<entry>
<title>lib-patch-mode.sh: Fix permission</title>
<updated>2010-01-31T00:08:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-31T00:04:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c32056e0ef193002f80d75fd795e156ddf65c4ab'/>
<id>urn:sha1:c32056e0ef193002f80d75fd795e156ddf65c4ab</id>
<content type='text'>
In the same sprit as 4848509 (Fix permissions on test scripts,
2007-04-13), t/lib-patch-mode.sh should not be executable.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: disable interactive hunk selection tests if perl is not available</title>
<updated>2009-08-18T19:28:42Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-08-18T06:12:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=933766c1a9df4981aa99120e192d8444150c9765'/>
<id>urn:sha1:933766c1a9df4981aa99120e192d8444150c9765</id>
<content type='text'>
These are all backed by git-add--interactive.perl under the hood.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Acked-By: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add a small patch-mode testing library</title>
<updated>2009-08-14T19:40:09Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-08-13T12:29:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b319ef70a94731a5c6f18d07a49d5dda3f06f5d3'/>
<id>urn:sha1:b319ef70a94731a5c6f18d07a49d5dda3f06f5d3</id>
<content type='text'>
The tests for {reset,commit,stash} -p will frequently have to set both
worktree and index states to known values, and verify that the outcome
(again both worktree and index) are what was expected.

Add a small helper library that lets us do these tasks more easily.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
