Skip to content

Commit 534a96d

Browse files
epaganonprabhakk-mw
authored andcommitted
Fixes failing test due to different process name.
1 parent 36462c0 commit 534a96d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/alternates/building-on-matlab-docker-image/test_entrypoint.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,18 @@ def test_no_entry_option(self):
5656
self.assertIn(expected_login_msg.lower(), output.lower())
5757

5858
def test_shell_option(self):
59-
"""Test that if the '-shell' option is specified, then a '/bin/bash' process is started"""
60-
expected_shell = "/bin/bash"
59+
"""Test that if the '-shell' option is specified, then a 'bash' process is started"""
60+
expected_shell_before_22b = "/bin/bash"
61+
expected_shell_after_23a = "bash"
62+
expected_shell=expected_shell_after_23a if helpers.get_release().lower() >= "r2023a" else expected_shell_before_22b
6163
self.container = self.client.containers.run(
6264
image=self.image_name,
6365
detach=True,
6466
stdin_open=True,
6567
command="-shell",
6668
)
6769
host = testinfra.get_host("docker://" + self.container.id)
68-
helpers.wait_for_cmd(self.container, expected_shell)
70+
helpers.wait_for_cmd(self.container, expected_shell, timeout=5)
6971

7072
running_procs = host.check_output("ps -x -o cmd")
7173
self.assertIn(expected_shell, running_procs)

0 commit comments

Comments
 (0)