t: add tests for error conditions with --pathspec-from-file
authorAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Mon, 30 Dec 2019 15:38:38 +0000 (15:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2020 20:14:15 +0000 (12:14 -0800)
commitf94f7bd00d06c6b651a0e7afcc90ac86cc5f391b
tree2e587cabe5d5761b42479187464405f7e6dc60c5
parentd0654dc308b0ba76dd8ed7bbb33c8d8f7aacd783
t: add tests for error conditions with --pathspec-from-file

Also move some old tests into the new tests: it doesn't seem reasonable
to have individual error condition tests.

Old test for `git commit` was corrected, previously it was instructed
to use stdin but wasn't provided with any stdin. While this works at
the moment, it's not exactly perfect.

Old tests for `git reset` were improved to test for a specific error
message.

Suggested-By: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2026-checkout-pathspec-file.sh
t/t2072-restore-pathspec-file.sh
t/t3704-add-pathspec-file.sh
t/t7107-reset-pathspec-file.sh
t/t7526-commit-pathspec-file.sh