diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-02-04 13:47:30 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-02-04 14:25:33 +0000 |
commit | 425fd7728060e72bb29299561fc5e3347b480bcb (patch) | |
tree | 56c242a8a7a1fc3128ba30637e17180cac4859e5 /tests | |
parent | b15115a7910d2f8cd4c12ed2fa2e11d5939bb396 (diff) |
tests: Bail on commits tagged "[dgit ... INTERNAL ...]"
We are about to generate some of these.
I have tested ad-hoc that this does in fact trigger, as follows:
* Start with the tip of my wip branch with the absurd git apply
series filtering work completed.
* Ad-hoc disable the git rebase in the absurd git apply cleanup,
so that the series filtering commit ends up in the output:
- if ($use_absurd) {
+ if (0 and $use_absurd) {
* Revert the change to the test case absurd example; this leaves
a test case which forces use of absurd git apply, but where
the series filtering doesn't in fact alter the series file,
so dgit is happy that the trees match.
In this situation, the new test *did* complain about the
INTERNAL commit.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -454,6 +454,8 @@ t-git-fsck () { 0) fail "unexpected messages from git-fsck" ;; *) fail "grep of git-fsck failed" ;; esac + + t-output "" git log --all --grep '^\[dgit .*INTERNAL.*]' } t-check-only-bpd () { |