aboutsummaryrefslogtreecommitdiff
path: root/tests/cli-opts.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/cli-opts.sh12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh
index a6be446..5edbc17 100755
--- a/tests/cli-opts.sh
+++ b/tests/cli-opts.sh
@@ -1,17 +1,7 @@
#!/bin/sh
set -u
-export XDG_DATA_HOME="$PWD/tests/test-profiles"
-OUT=
-ERR=
-STATUS=
-
-assert_status() {
- if [ "$STATUS" != "$1" ]; then
- echo "Unexpected status: $STATUS, expected: $1"
- exit 1
- fi
-}
+. tests/lib.sh
assert_usage() {
if ! grep -Fq 'Usage' "$ERR"; then