Skip to content

Commit 969b271

Browse files
michaelmcdonnellmwprabhakk-mw
authored andcommitted
Fixes the failures in the entrypoint unit tests due to the changes in bats shell testing framework.
1 parent 8c9c311 commit 969b271

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

matlab/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ RUN export DEBIAN_FRONTEND=noninteractive \
4343
apt-utils \
4444
# Requirements for mpm
4545
ca-certificates \
46+
# Requirements for mex generation
47+
gcc \
48+
g++ \
4649
# Requirements for VNC
4750
libglu1-mesa \
4851
libosmesa6 \

matlab/build/utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ startContainer() {
223223

224224
# Always want everything to start in the user home folder
225225
cd ~/Documents/MATLAB/ || exit 1
226-
exec /bin/bash
226+
exec bash
227227

228228
# In browser mode, print the web message and start matlab-proxy
229229
elif [ "${BROWSER}" = true ]; then

tests/matlab/tRun.bats

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ teardown_file() {
9090
local message="this is a fake readme!"
9191
create_file_with_content "${README_FILE}" "${message}"
9292

93-
create_mock "bash" "/bin"
93+
create_mock "bash"
9494
create_mock_df
9595

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

9898
# teardown - delete files
99-
remove_mock "bash" "/bin"
99+
remove_mock "bash"
100100
remove_mock_df
101101
rm $README_FILE
102102

0 commit comments

Comments
 (0)