Skip to content

Commit 397dec7

Browse files
committed
test: make sure $NOTIFY_SOCKET is unset in test
When running the tests in Fedora's mock, the test would fail because NOTIFY_SOCKET is set to /run/systemd/nspawn/notify, and we get a permission error.
1 parent c71bbac commit 397dec7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

systemd/test/test_daemon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ def test_listen_fds_with_names_multiple():
297297
assert listen_fds_with_names() == {}
298298

299299
def test_notify_no_socket():
300+
os.environ.pop('NOTIFY_SOCKET', None)
301+
300302
assert notify('READY=1') is False
301303
with skip_enosys():
302304
assert notify('FDSTORE=1', fds=[]) is False

0 commit comments

Comments
 (0)