From 11a4b536213001baba63c05ed56879ff508f03b0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 12 Jun 2021 19:03:20 -0300 Subject: 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. --- tests/cli-opts.sh | 2 ++ tests/xdg-open | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100755 tests/xdg-open (limited to 'tests') 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 -- cgit v1.2.3