diff options
author | EuAndreh <eu@euandre.org> | 2021-06-12 20:13:45 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-12 20:13:49 -0300 |
commit | cd7bd39b1b6ce7d958f48d63b42ba3ab5fdf6f21 (patch) | |
tree | 9bc8f11bbca58116d3731839fd3d945877e6187c /tests/cli-opts.sh | |
parent | Makefile: Actually generate manpages HTML (diff) | |
download | git-permalink-cd7bd39b1b6ce7d958f48d63b42ba3ab5fdf6f21.tar.gz git-permalink-cd7bd39b1b6ce7d958f48d63b42ba3ab5fdf6f21.tar.xz |
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.
Diffstat (limited to 'tests/cli-opts.sh')
-rwxr-xr-x | tests/cli-opts.sh | 25 |
1 files changed, 0 insertions, 25 deletions
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 |