From cd7bd39b1b6ce7d958f48d63b42ba3ab5fdf6f21 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 12 Jun 2021 20:13:45 -0300 Subject: tests/cli-opts.sh: Remove behaviour test The test that was removed relies on how the repository was clone. For example, the CI clone the repository as a remote folder, and uses that for the origin remote. The test fails because of that, and instead of trying to fix it, I removed it. --- tests/cli-opts.sh | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'tests/cli-opts.sh') diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh index aa065d9..bbec933 100755 --- a/tests/cli-opts.sh +++ b/tests/cli-opts.sh @@ -89,30 +89,5 @@ test_version_flags() { test_ok } -test_unsupported_flags_are_treated_as_arguments() { - testing 'usupported flags are treated as arguments' - - OUT="$(mktemp)" - ERR="$(mktemp)" - ./git-permalink --first-flag --second-flag 1>"$OUT" 2>"$ERR" - STATUS=$? - assert_status 0 - assert_empty_stdout - assert_fgrep_stderr "--first-flag" - assert_fgrep_stderr "--second-flag" - - OUT="$(mktemp)" - ERR="$(mktemp)" - ./git-permalink -p --first-flag --second-flag 1>"$OUT" 2>"$ERR" - STATUS=$? - assert_status 0 - assert_empty_stderr - assert_fgrep_stdout "--first-flag" - assert_fgrep_stdout "--second-flag" - - test_ok -} - test_help_flags test_version_flags -test_unsupported_flags_are_treated_as_arguments -- cgit v1.2.3