Skip to content

Commit

Permalink
Update test for comunicate
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkankovsky committed Aug 22, 2024
1 parent c1a4fb1 commit ad37262
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions pyanaconda/ui/webui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def _run_webui(self):
reset_lang=False
)

log.debug("cockpit web view has been started")
with open(self._viewer_pid_file, "w") as f:
f.write(repr(proc.pid))

Expand All @@ -159,8 +160,6 @@ def _run_webui(self):
if output_string and output_string[-1] != "\n":
output_string = output_string + "\n"

log.debug("ddddd output: %s errors: %s", output_string, err_string)

with program_log_lock:
if output_string:
for line in output_string.splitlines():
Expand Down
1 change: 1 addition & 0 deletions tests/unit_tests/pyanaconda_tests/ui/test_webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def test_run_not_on_live(self, mocked_conf, mocked_startProgram):
mocked_conf.system.provides_liveuser = False
mocked_process = Mock()
mocked_process.pid = 12345
mocked_process.communicate.return_value = ("", "")
mocked_startProgram.return_value = mocked_process

with tempfile.TemporaryDirectory() as fd:
Expand Down

0 comments on commit ad37262

Please sign in to comment.