Skip to content

Commit 6967f3c

Browse files
committed
Test that service configs are found in all places they should be
Service config for qubes.Service+arg should also be checked for in the location for qubes.Service. Add a test for that.
1 parent 47978ac commit 6967f3c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

qrexec/tests/socket/agent.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ def test_exec_service_with_config(self):
408408
self.check_dom0(dom0)
409409

410410
def test_wait_for_session(self):
411+
self._test_wait_for_session("qubes.Service+arg")
412+
def test_wait_for_session_config_in_location_sans_argument(self):
413+
self._test_wait_for_session("qubes.Service")
414+
def _test_wait_for_session(self, config_name):
411415
log = os.path.join(self.tempdir, "wait-for-session.log")
412416
util.make_executable_service(
413417
self.tempdir,
@@ -438,7 +442,7 @@ def test_wait_for_session(self):
438442
assert "'" not in user
439443
assert "\n" not in user
440444
with open(
441-
os.path.join(self.tempdir, "rpc-config", "qubes.Service+arg"), "w"
445+
os.path.join(self.tempdir, "rpc-config", config_name), "w"
442446
) as f:
443447
f.write(f"""\
444448

0 commit comments

Comments
 (0)