Revert "MATLAB testsuite: don’t use -batch for the time being on Linux and macOS"

It actually does not prevent crashes, see for example:
https://git.dynare.org/Dynare/dynare/-/jobs/4314

This reverts commit 3cf650a2dd.
time-shift
Sébastien Villemot 2019-06-20 17:44:23 +02:00
parent d69fadc362
commit cb44d96121
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 10 deletions

View File

@ -22,16 +22,7 @@ AC_REQUIRE([AX_MATLAB_ARCH])
AC_REQUIRE([AX_MATLAB_VERSION])
AX_COMPARE_VERSION([$MATLAB_VERSION], [ge], [9.6],
[
if test "${MATLAB_ARCH}" = win32 -o "${MATLAB_ARCH}" = win64; then
MATLAB_BATCH_OPTIONS='-noFigureWindows -batch'
else
dnl The new -batch option leads to random crashes in Gitlab CI (as of
dnl MATLAB R2019a Update 1), so avoid it for the time being (except under
dnl Windows where it is quite useful)
MATLAB_BATCH_OPTIONS='-nosplash -nodisplay -r'
fi
],
[MATLAB_BATCH_OPTIONS='-noFigureWindows -batch'],
[
if test "${MATLAB_ARCH}" = win32 -o "${MATLAB_ARCH}" = win64; then
MATLAB_BATCH_OPTIONS='-nosplash -automation -wait -sd "$(CURDIR)" -r'