blob: f42db2d0cd09b1fef1b371be915a551b72a76aae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# shellcheck disable=2034
export XDG_DATA_HOME="$PWD/tests/test-profiles"
OUT=
ERR=
STATUS=
PROFILE=
assert_status() {
if [ "$STATUS" != "$1" ]; then
printf 'Bad status.\n\nexpected: %s\ngot: %s\n' "$1" "$STATUS" >&2
exit 1
fi
}
assert_empty_stderr() {
if [ "$(cat "$ERR")" != '' ]; then
echo "Expected STDERR ($ERR) to be empty, but has content:"
cat "$ERR"
exit 1
fi
}
|