Skip to content

Commit

Permalink
Test that service configs are found in all places they should be
Browse files Browse the repository at this point in the history
Service config for qubes.Service+arg should also be checked for in the
location for qubes.Service.  Add a test for that.
  • Loading branch information
DemiMarie committed Apr 9, 2024
1 parent aaba8dc commit 9ebd8c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qrexec/tests/socket/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ def test_exec_service_with_config(self):
self.check_dom0(dom0)

def test_wait_for_session(self):
self._test_wait_for_session("qubes.Service+arg")
def test_wait_for_session_config_in_location_sans_argument(self):
self._test_wait_for_session("qubes.Service")
def _test_wait_for_session(self, config_name):
log = os.path.join(self.tempdir, "wait-for-session.log")
util.make_executable_service(
self.tempdir,
Expand Down Expand Up @@ -438,7 +442,7 @@ def test_wait_for_session(self):
assert "'" not in user
assert "\n" not in user
with open(
os.path.join(self.tempdir, "rpc-config", "qubes.Service+arg"), "w"
os.path.join(self.tempdir, "rpc-config", config_name), "w"
) as f:
f.write(f"""\
Expand Down

0 comments on commit 9ebd8c0

Please sign in to comment.