From f33221932346ebd67c66840bcb98f826ca369566 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 24 Jan 2021 01:41:41 -0300 Subject: Add tests/lib.sh --- tests/cli-opts.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'tests/cli-opts.sh') 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 -- cgit v1.2.3