t9814: simplify convoluted check that command correctly errors out
commit794165cb17c1f19c21ac36c2c362f0e4069de792
authorEric Sunshine <sunshine@sunshineco.com>
Mon, 2 Jul 2018 00:23:54 +0000 (1 20:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Jul 2018 21:38:47 +0000 (16 14:38 -0700)
tree3d25b0d59a32974989edc792bd22bb5447c660e1
parentbe8c48d4c4e42a7fe879241ca4e52325dd4f96f0
t9814: simplify convoluted check that command correctly errors out

This test uses a convoluted method to verify that "p4 help" errors
out when asked for help about an unknown command. In doing so, it
intentionally breaks the &&-chain. Simplify by employing the typical
"! command" idiom and a normal &&-chain instead.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9814-git-p4-rename.sh