Debian Codegraph @

uml/run-test

raw
1 #!/bin/sh
2 # Copyright 2021-2022 Ian Jackson and contributors to Hippotat
3 # SPDX-License-Identifier: GPL-3.0-or-later WITH LicenseRef-Hippotat-OpenSSL-Exception
4 # There is NO WARRANTY.
5
6 # *** This does not work. ***
7 # UML is too horribly flaky. Use test/ instead, which just uses unshare!
8
9 set -e
10 set -x
11
12 uml="${0%/*}"/psusan-uml
13
14 if timeout --foreground 5 $uml-run true; then :
15 else
16 $uml-setup 2>&1 |ts >tmp/uml-setup &
17 sleep 5
18 timeout --foreground 5 $uml-run true ||:
19 timeout --foreground 5 $uml-run true
20 fi
21
22 echo hi