# For the license, see the LICENSE file in the root directory.
+if [ -e /run/lock/sbuild ]; then
+ echo "building in sbuild, avoid potential (unshare) problematic test"
+ exit 77
+fi
+
ROOT=${abs_top_builddir:-$(dirname "$0")/..}
TESTDIR=${abs_top_testdir:-$(dirname "$0")}
# OS X would not allow nobody to access the $TPMDIR easily; skip it
if [ $(id -u) -eq 0 ] && [ "$(uname -s)" != "Darwin" ]; then
- FOWNER=",uid=nobody,gid=$(id -Gn nobody | cut -d" " -f1)"
FILEOWNER="$(id -u nobody) $(id -G nobody | cut -d" " -f1)"
RUNAS="--runas nobody"
chown nobody $TPMDIR
# For the license, see the LICENSE file in the root directory.
+if [ -e /run/lock/sbuild ]; then
+ echo "building in sbuild, avoid potential (unshare) problematic test"
+ exit 77
+fi
+
ROOT=${abs_top_builddir:-$(dirname "$0")/..}
TESTDIR=${abs_top_testdir:-$(dirname "$0")}