parse-options: do not show usage upon invalid option value
[gitweb.git] / t / t3404-rebase-interactive.sh
index 481a3500900d0fccb28762ba24b2ca422956a44f..3216707df77deaf8c6657e945b5bdabea17ac9be 100755 (executable)
@@ -915,10 +915,8 @@ test_expect_success 'rebase --exec works without -i ' '
 test_expect_success 'rebase -i --exec without <CMD>' '
        git reset --hard execute &&
        set_fake_editor &&
-       test_must_fail git rebase -i --exec 2>tmp &&
-       sed -e "1d" tmp >actual &&
-       test_must_fail git rebase -h >expected &&
-       test_cmp expected actual &&
+       test_must_fail git rebase -i --exec 2>actual &&
+       test_i18ngrep "requires a value" actual &&
        git checkout master
 '