summaryrefslogtreecommitdiffstats
path: root/tests/error-if-stdout-is-tty
blob: b4f6923c7e66ceca5efadba4e11df0060311e42e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -eu

export LC_ALL=C.UTF-8

ret=0
script -qfec "{{ CMD }} --mode={{ MODE }} --variant=apt {{ DIST }} - {{ MIRROR }}" /dev/null || ret=$?
if [ "$ret" = 0 ]; then
	echo expected failure but got exit $ret >&2
	exit 1
fi