Skip to content

Commit

Permalink
Modify DisplayServerStaticFile env handling code
Browse files Browse the repository at this point in the history
  • Loading branch information
tarek-y-ismail committed Aug 5, 2024
1 parent f31b5d7 commit 7d4ea07
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mir-ci/mir_ci/tests/display_server_static_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ def __init__(self, local_server, *args, **kwargs):

config_file = f"static={self.tmp_filename}"

Check warning on line 19 in mir-ci/mir_ci/tests/display_server_static_file.py

View check run for this annotation

Codecov / codecov/patch

mir-ci/mir_ci/tests/display_server_static_file.py#L19

Added line #L19 was not covered by tests

if "env" in kwargs:
env = kwargs["env"]
if "MIR_SERVER_DISPLAY_CONFIG" not in env:
env["MIR_SERVER_DISPLAY_CONFIG"] = config_file
if "env" not in kwargs:
kwargs["env"] = {}

Check warning on line 22 in mir-ci/mir_ci/tests/display_server_static_file.py

View check run for this annotation

Codecov / codecov/patch

mir-ci/mir_ci/tests/display_server_static_file.py#L22

Added line #L22 was not covered by tests

if "MIR_SERVER_DISPLAY_CONFIG" not in kwargs["env"]:
kwargs["env"]["MIR_SERVER_DISPLAY_CONFIG"] = config_file

Check warning on line 25 in mir-ci/mir_ci/tests/display_server_static_file.py

View check run for this annotation

Codecov / codecov/patch

mir-ci/mir_ci/tests/display_server_static_file.py#L25

Added line #L25 was not covered by tests

self.server = DisplayServer(self.local_server, *args, **kwargs)

Check warning on line 27 in mir-ci/mir_ci/tests/display_server_static_file.py

View check run for this annotation

Codecov / codecov/patch

mir-ci/mir_ci/tests/display_server_static_file.py#L27

Added line #L27 was not covered by tests

Expand Down

0 comments on commit 7d4ea07

Please sign in to comment.