sapling/tests/test-check-code-hg.t
Matt Mackall 202783c374 tests: only call check-code once
The accepted warnings list is now empty, let's try to keep it that way.
2012-11-26 15:59:02 -06:00

12 lines
340 B
Perl

$ check_code="$TESTDIR"/../contrib/check-code.py
$ cd "$TESTDIR"/..
$ if hg identify -q > /dev/null; then :
> else
> echo "skipped: not a Mercurial working dir" >&2
> exit 80
> fi
New errors are not allowed. Warnings are strongly discouraged.
$ hg manifest | xargs "$check_code" --warnings --nolineno --per-file=0