]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei-p2q.t
t/lei*: check error messages on failures
[public-inbox.git] / t / lei-p2q.t
index 58506f944a208ad58501cd2f2724c8b5e6fcb7d5..495d81de78a5cce12aafc8c35b60c2b843982f7a 100644 (file)
@@ -8,6 +8,7 @@ require_mods(qw(json DBD::SQLite Search::Xapian));
 test_lei(sub {
        ok(!lei(qw(p2q this-better-cause-format-patch-to-fail)),
                'p2q fails on bogus arg');
+       like($lei_err, qr/format-patch.*failed/, 'notes format-patch failure');
        lei_ok(qw(p2q -w dfpost t/data/0001.patch));
        is($lei_out, "dfpost:6e006fd73b1d\n", 'pathname') or diag $lei_err;
        open my $fh, '+<', 't/data/0001.patch' or xbail "open: $!";