[segyio] 34/376: Prevent matlab from messing with tty

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

jokva-guest pushed a commit to branch debian
in repository segyio.

commit c8fead1c92d45c3605ae0601fcb5ac8614ca5875
Author: Kjell W. Kongsvik <kwko at statoil.com>
Date:   Thu Oct 13 12:48:32 2016 +0200

    Prevent matlab from messing with tty
    
    Matlab workaround: redirect input to matlab from /dev/null
---
 cmake/matlab.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/matlab.cmake b/cmake/matlab.cmake
index 6fde70c..f2454c7 100644
--- a/cmake/matlab.cmake
+++ b/cmake/matlab.cmake
@@ -225,7 +225,7 @@ function(matlab_test TYPE TESTNAME MCC_SOURCE_FILE)
 
     add_test(NAME ${TESTNAME}
             COMMAND ${MATLAB_ROOT}/bin/matlab -nodisplay -nosplash -nodesktop -r
-            "try, addpath('../mex'), run('test_segy_mex.m'), catch, exit(-1), end, exit(0);"
+            "addpath('../mex'), try, run('${MCC_SOURCE_FILE}'), exit(0), catch, exit(-1), end;" < /dev/null
             )
 endfunction()
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git



More information about the debian-science-commits mailing list