mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 21:54:10 +01:00
test: sanitize line numbers in exception reports
Prevent test suite churn when reported line numbers change.
This commit is contained in:
parent
f9fbd1ee3b
commit
1a8060b81f
1 changed files with 6 additions and 1 deletions
|
@ -619,6 +619,11 @@ print(msg.as_string(False))
|
||||||
' "$@"
|
' "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
notmuch_exception_sanitize ()
|
||||||
|
{
|
||||||
|
perl -pe 's/(A Xapian exception occurred at .*[.]cc?):([0-9]*)/\1:XXX/'
|
||||||
|
}
|
||||||
|
|
||||||
notmuch_search_sanitize ()
|
notmuch_search_sanitize ()
|
||||||
{
|
{
|
||||||
perl -pe 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/'
|
perl -pe 's/("?thread"?: ?)("?)................("?)/\1\2XXX\3/'
|
||||||
|
@ -1093,7 +1098,7 @@ test_C () {
|
||||||
echo "== stdout ==" > OUTPUT.stdout
|
echo "== stdout ==" > OUTPUT.stdout
|
||||||
echo "== stderr ==" > OUTPUT.stderr
|
echo "== stderr ==" > OUTPUT.stderr
|
||||||
./${exec_file} "$@" 1>>OUTPUT.stdout 2>>OUTPUT.stderr
|
./${exec_file} "$@" 1>>OUTPUT.stdout 2>>OUTPUT.stderr
|
||||||
notmuch_dir_sanitize OUTPUT.stdout OUTPUT.stderr > OUTPUT
|
notmuch_dir_sanitize OUTPUT.stdout OUTPUT.stderr | notmuch_exception_sanitize > OUTPUT
|
||||||
}
|
}
|
||||||
|
|
||||||
make_shim () {
|
make_shim () {
|
||||||
|
|
Loading…
Reference in a new issue