/run/ on my FreeBSD install is not readable causing failing test.
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
with open("/run/systemd/container", "rb") as fp:
if fp.read().rstrip() != b"systemd-nspawn":
return False
- except FileNotFoundError:
+ except (FileNotFoundError, PermissionError):
return False
# If systemd-nspawn is used, O_SYNC flag will immediately
--- /dev/null
+Fix tests failing on FreeBSD in test.support's
+in_systemd_nspawn_sync_suppressed() due to unreadable /run directory.