aboutsummaryrefslogtreecommitdiff
path: root/tests/cli-opts.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-20 01:43:31 -0300
committerEuAndreh <eu@euandre.org>2021-02-20 01:43:31 -0300
commit40f7cf2333ac501598fa9b4aa8f1a4b435800b06 (patch)
tree6d184d818248fd6a2bbd7ad4de56607285a16c6c /tests/cli-opts.sh
parentMakefile.in: Simplify build/tests of C code (diff)
downloadremembering-40f7cf2333ac501598fa9b4aa8f1a4b435800b06.tar.gz
remembering-40f7cf2333ac501598fa9b4aa8f1a4b435800b06.tar.xz
cli-opts.sh: Fix sandboxed tests, add $XDG_DATA_HOME
Diffstat (limited to 'tests/cli-opts.sh')
-rwxr-xr-xtests/cli-opts.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh
index d1fee95..83b3587 100755
--- a/tests/cli-opts.sh
+++ b/tests/cli-opts.sh
@@ -4,6 +4,8 @@ set -u
. aux/utils.sh
. tests/lib.sh
+export XDG_DATA_HOME="$PWD/tests/test-profiles"
+
assert_usage() {
if ! grep -Fq 'Usage' "$1"; then
echo 'Expected to find "Usage" text, it was missing:' >&2