aboutsummaryrefslogtreecommitdiff
path: root/tests/cli-opts.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-12 20:13:45 -0300
committerEuAndreh <eu@euandre.org>2021-06-12 20:13:49 -0300
commitcd7bd39b1b6ce7d958f48d63b42ba3ab5fdf6f21 (patch)
tree9bc8f11bbca58116d3731839fd3d945877e6187c /tests/cli-opts.sh
parentMakefile: Actually generate manpages HTML (diff)
downloadgit-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-xtests/cli-opts.sh25
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