#!/bin/sh

export HOME=$AUTOPKGTEST_TMP
export PATH=$PATH:$HOME/.local/bin

hostsman --list > hostsman-hosts
sed -i 's/\x1b\[[0-9;]*m//g' hostsman-hosts

if diff hostsman-hosts /etc/hosts; then
	echo "Passed"
else
	exit 1
fi
