Re: [PATCH] tests: account for varying-size OpenPGP signatures
On Wed 2016-11-23 11:59:38 -0500, David Bremner wrote: > there are a bunch of sed oneliners (or perl equivalent) collected in > test-lib.sh as functions test_*_sanitize. I wonder if that would be > worthwhile here, to have one place to update regexps etc... Something > in the style of notmuch_show_sanitize wrapping a call to > notmuch_json_show_sanitize Thanks for the suggestion, please see v2 of this patch. --dkg ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH] tests: account for varying-size OpenPGP signatures
Daniel Kahn Gillmor writes: > @@ -37,7 +37,8 @@ test_expect_success 'emacs delivery of signed message' \ > test_begin_subtest "signature verification" > output=$(notmuch show --format=json --verify subject:"test signed message > 001" \ > | notmuch_json_show_sanitize \ > -| sed -e 's|"created": [1234567890]*|"created": 946728000|') > +| sed -e 's|"created": [1234567890]*|"created": 946728000|' \ > + -e 's/"content-length": [1-9][0-9]*/"content-length": "NONZERO"/') there are a bunch of sed oneliners (or perl equivalent) collected in test-lib.sh as functions test_*_sanitize. I wonder if that would be worthwhile here, to have one place to update regexps etc... Something in the style of notmuch_show_sanitize wrapping a call to notmuch_json_show_sanitize ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch