Blame SOURCES/0003-test-make-sure-NOTIFY_SOCKET-is-unset-in-test.patch

fa62eb
From 21e0cee30e5550cd6c9afa8c4cdedbcfdfca8480 Mon Sep 17 00:00:00 2001
fa62eb
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
fa62eb
Date: Thu, 12 Nov 2020 17:08:02 +0100
fa62eb
Subject: [PATCH] test: make sure $NOTIFY_SOCKET is unset in test
fa62eb
fa62eb
When running the tests in Fedora's mock, the test would
fa62eb
fail because NOTIFY_SOCKET is set to /run/systemd/nspawn/notify, and
fa62eb
we get a permission error.
fa62eb
---
fa62eb
 systemd/test/test_daemon.py | 2 ++
fa62eb
 1 file changed, 2 insertions(+)
fa62eb
fa62eb
diff --git a/systemd/test/test_daemon.py b/systemd/test/test_daemon.py
fa62eb
index 1ddb55e94d..ff9e086e72 100644
fa62eb
--- a/systemd/test/test_daemon.py
fa62eb
+++ b/systemd/test/test_daemon.py
fa62eb
@@ -257,6 +257,8 @@ def test_listen_fds_default_unset():
fa62eb
     assert listen_fds() == []
fa62eb
 
fa62eb
 def test_notify_no_socket():
fa62eb
+    os.environ.pop('NOTIFY_SOCKET', None)
fa62eb
+
fa62eb
     assert notify('READY=1') is False
fa62eb
     with skip_enosys():
fa62eb
         assert notify('FDSTORE=1', fds=[]) is False