about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-29 07:08:25 +0000
committerEric Wong <e@80x24.org>2021-03-29 13:43:55 -0400
commitd326b75c07c6d79547c045cb08163f9d40b245b9 (patch)
tree8a2db59ea28b93b2e6d4f59e73bd6cde81452893 /t
parenta0ad0c832830ecd70d01dfba5f1bc81d4efcd950 (diff)
downloadpublic-inbox-d326b75c07c6d79547c045cb08163f9d40b245b9.tar.gz
".eml" is a suffix supported by (/usr/local)/etc/mime.types
on Debian and FreeBSD systems using the "mime-support" package.
".patch" is what "git format-patch" generates by default since
git v1.5.0 in 2007.
Diffstat (limited to 't')
-rw-r--r--t/lei-import.t2
-rw-r--r--t/lei-mark.t4
2 files changed, 3 insertions, 3 deletions
diff --git a/t/lei-import.t b/t/lei-import.t
index 33ce490d..99289748 100644
--- a/t/lei-import.t
+++ b/t/lei-import.t
@@ -4,7 +4,7 @@
 use strict; use v5.10.1; use PublicInbox::TestCommon;
 test_lei(sub {
 ok(!lei(qw(import -F bogus), 't/plack-qp.eml'), 'fails with bogus format');
-like($lei_err, qr/\bbogus unrecognized/, 'gave error message');
+like($lei_err, qr/\bis `eml', not --in-format/, 'gave error message');
 
 lei_ok(qw(q s:boolean), \'search miss before import');
 unlike($lei_out, qr/boolean/i, 'no results, yet');
diff --git a/t/lei-mark.t b/t/lei-mark.t
index 7855839e..98652c85 100644
--- a/t/lei-mark.t
+++ b/t/lei-mark.t
@@ -26,8 +26,8 @@ my $check_kw = sub {
 
 test_lei(sub {
         lei_ok(qw(ls-label)); is($lei_out, '', 'no labels, yet');
-        lei_ok(qw(import -F eml t/utf8.eml));
-        lei_ok(qw(mark -F eml t/utf8.eml +kw:flagged +L:urgent));
+        lei_ok(qw(import t/utf8.eml));
+        lei_ok(qw(mark t/utf8.eml +kw:flagged +L:urgent));
         $check_kw->(['flagged'], L => ['urgent']);
         lei_ok(qw(ls-label)); is($lei_out, "urgent\n", 'label found');
         ok(!lei(qw(mark -F eml t/utf8.eml +kw:seeen)), 'bad kw rejected');