Thread (7 messages) flat view 7 messages, 4 authors, 2018-02-26

Re: [PATCH 3/7] worktree move: new command

From: Junio C Hamano <hidden>
Date: 2018-02-14 17:35:12

Possibly related (same subject, not in this thread)

Duy Nguyen [off-list ref] writes:
On Wed, Feb 14, 2018 at 10:16 AM, Jeff King [off-list ref] wrote:
quoted
Hmm. That is not too bad, but somehow it feels funny to me to be
polluting each test script with these annotations. And to be driving it
from inside the test scripts.

It seems like:

  make SANITIZE=leak test GIT_SKIP_TESTS="$(cat known-leaky)"

would be sufficient.
And all new test files are considered leak-free by default? I like that!
Sounds good ;-)
quoted
And updating the list would just be:

  # assume we're using prove, which will keep running after failure,
  # and will record the results for us to parse (using "--state=").
  # Otherwise use "make -k" and grep in t/test-results.
  make SANITIZE=leak test
  (cd t && prove --dry --state=failed) |
  perl -lne '/^(t[0-9]{4})-.*.sh$/ and print $1' |
  sort >known-leaky

That would update both now-passing and now-failing tests. Presumably
we'd keep it checked in, so "git diff" would show you the changes.
Sounds good, too.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help