Skip to content

Commit

Permalink
Fixes the failures in the entrypoint unit tests due to the changes in…
Browse files Browse the repository at this point in the history
… bats shell testing framework.
  • Loading branch information
michaelmcdonnellmw authored and prabhakk-mw committed Jan 9, 2025
1 parent 8c9c311 commit 969b271
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions matlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ RUN export DEBIAN_FRONTEND=noninteractive \
apt-utils \
# Requirements for mpm
ca-certificates \
# Requirements for mex generation
gcc \
g++ \
# Requirements for VNC
libglu1-mesa \
libosmesa6 \
Expand Down
2 changes: 1 addition & 1 deletion matlab/build/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ startContainer() {

# Always want everything to start in the user home folder
cd ~/Documents/MATLAB/ || exit 1
exec /bin/bash
exec bash

# In browser mode, print the web message and start matlab-proxy
elif [ "${BROWSER}" = true ]; then
Expand Down
4 changes: 2 additions & 2 deletions tests/matlab/tRun.bats
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ teardown_file() {
local message="this is a fake readme!"
create_file_with_content "${README_FILE}" "${message}"

create_mock "bash" "/bin"
create_mock "bash"
create_mock_df

run "${SRCDIR}/run.sh" -vnc

# teardown - delete files
remove_mock "bash" "/bin"
remove_mock "bash"
remove_mock_df
rm $README_FILE

Expand Down

0 comments on commit 969b271

Please sign in to comment.