diff options
author | EuAndreh <eu@euandre.org> | 2021-06-12 19:03:20 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-12 19:05:15 -0300 |
commit | 11a4b536213001baba63c05ed56879ff508f03b0 (patch) | |
tree | 43b8ec63d942dbc82ab73ef6a3143224dc5a1c57 | |
parent | src/git-permalink.sh: Fix bad treatment of -p flag (diff) | |
download | git-permalink-11a4b536213001baba63c05ed56879ff508f03b0.tar.gz git-permalink-11a4b536213001baba63c05ed56879ff508f03b0.tar.xz |
Revert "tests/xdg-open: Remove unused file"
This reverts commit d3faf9644490a191a16c148a3f4f865b730e5188.
The file was not actually unused, but used in tests to avoid side
effects when running them.
-rwxr-xr-x | tests/cli-opts.sh | 2 | ||||
-rwxr-xr-x | tests/xdg-open | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh index befff4d..aa065d9 100755 --- a/tests/cli-opts.sh +++ b/tests/cli-opts.sh @@ -3,6 +3,8 @@ set -u . aux/tests-lib.sh +export PATH="$PWD/tests:$PATH" + test_help_flags() { testing 'help flags' diff --git a/tests/xdg-open b/tests/xdg-open new file mode 100755 index 0000000..0b89ef4 --- /dev/null +++ b/tests/xdg-open @@ -0,0 +1,8 @@ +#!/bin/sh +set -eu + +# This is a noop executable, to test git-permalink without interating +# with xdg-open proper. + +# shellcheck disable=2145 +echo "xdg-open: $@" >&2 |