Skip to content

Commit

Permalink
move env APACHE_ENVVARS to optional
Browse files Browse the repository at this point in the history
It isn't set on tumbleweed.
  • Loading branch information
dirkmueller committed Jul 24, 2023
1 parent 047f67e commit f21946a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_php.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,11 @@ def get_env_var(env_var: str) -> str:
).is_file

apache_envvars = get_env_var("APACHE_ENVVARS")
assert container_per_test.connection.file(apache_envvars).is_file
assert container_per_test.connection.run_expect(
[0], f"source {apache_envvars}"
)
if apache_envvars:
assert container_per_test.connection.file(apache_envvars).is_file
assert container_per_test.connection.run_expect(
[0], f"source {apache_envvars}"
)


@pytest.mark.parametrize("container_image", [PHP_8_CLI])
Expand Down

0 comments on commit f21946a

Please sign in to comment.