summaryrefslogtreecommitdiffstats
path: root/tests/fail-installing-to-root
blob: ded6b5dd5e212da7f374fddc35df3868cf06886c (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -eu
export LC_ALL=C.UTF-8
ret=0
{{ CMD }} --mode={{ MODE }} --variant=apt {{ DIST }} / {{ MIRROR }} || ret=$?
if [ "$ret" = 0 ]; then
	echo expected failure but got exit $ret >&2
	exit 1
fi