#!/bin/sh
# Copyright 2021-2022 Ian Jackson and contributors to Hippotat
# SPDX-License-Identifier: GPL-3.0-or-later WITH LicenseRef-Hippotat-OpenSSL-Exception
# There is NO WARRANTY.

# *** This does not work. ***
# UML is too horribly flaky.  Use test/ instead, which just uses unshare!

set -e
set -x

uml="${0%/*}"/psusan-uml

if timeout --foreground 5 $uml-run true; then :
else 
	$uml-setup 2>&1 |ts >tmp/uml-setup &
	sleep 5
	timeout --foreground 5 $uml-run true ||:
	timeout --foreground 5 $uml-run true
fi

echo hi
