diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-08-31 15:09:47 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-08-31 15:09:47 -0400 |
commit | 63d5313664c96cdfcee345f5c880f9973a3ee1da (patch) | |
tree | 896d310748c1a079552199eb67c4e77ed5bfb6b3 /tests/samples/trailers-test-extinfo.txt | |
parent | e7564108c7e68094f1a6320f4166185a3e29cac1 (diff) | |
download | b4-63d5313664c96cdfcee345f5c880f9973a3ee1da.tar.gz |
Refactor how we handle trailers
With the addition of b4 trailers it became pretty obvious that the way
we originally implemented trailers didn't age well. This refactor does
the following:
- introduces LoreTrailer class to replace passing trailers as tuples
- reimplements trailer-order with strict adherence to chain-of-custody
rules
- adds tests to most common trailer follow-up/ordering cases
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'tests/samples/trailers-test-extinfo.txt')
-rw-r--r-- | tests/samples/trailers-test-extinfo.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/samples/trailers-test-extinfo.txt b/tests/samples/trailers-test-extinfo.txt new file mode 100644 index 0000000..d36abbb --- /dev/null +++ b/tests/samples/trailers-test-extinfo.txt @@ -0,0 +1,29 @@ +From: Test Test <test@example.com> +Subject: [PATCH] Simple test +Date: Tue, 30 Aug 2022 11:19:07 -0400 + +This is a simple trailer parsing test. + +Reviewed-by: Bogus Bupkes <bogus@example.com> +[for the parts that are bogus] +Fixes: abcdef01234567890 +Tested-by: Some Person <bogus2@example.com> + [this person visually indented theirs] +Link: https://msgid.link/some@msgid.here # initial submission +Signed-off-by: Wrapped Persontrailer +<broken@example.com> +--- + +diff --git a/b4/junk.py b/b4/junk.py +index 12345678..23456789 100644 +--- a/b4/junk.py +--- b/b4/junk.py +@@@ -1,1 +1,1 @@ def junk(): + + +-junk1 ++junk2 + + +-- +2.wong.fu |