We consider it an error to pass more than one file to restore, since
extra ones are ignored.
+ if (optind < argc) {
+ fprintf (stderr,
+ "Cannot read dump from more than one file: %s\n",
+ argv[optind]);
+ return 1;
+ }
+
/* Dump output is one line per message. We match a sequence of
* non-space characters for the message-id, then one or more
* spaces, then a list of space-separated tags as a sequence of
/* Dump output is one line per message. We match a sequence of
* non-space characters for the message-id, then one or more
* spaces, then a list of space-separated tags as a sequence of
test_cmp dump.expected dump.actual'
# notmuch restore currently only considers the first argument.
test_cmp dump.expected dump.actual'
# notmuch restore currently only considers the first argument.
-test_subtest_known_broken
test_expect_success 'Invalid restore invocation' \
'test_must_fail notmuch restore dump.expected another_one'
test_expect_success 'Invalid restore invocation' \
'test_must_fail notmuch restore dump.expected another_one'