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

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