Skip to content
Snippets Groups Projects
Commit f9456285 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

add cd in test

parent 3bb81705
No related branches found
No related tags found
1 merge request!168D3d add nete rho
Pipeline #205302 failed
...@@ -76,9 +76,6 @@ deploy: ...@@ -76,9 +76,6 @@ deploy:
# test post-deploy # test post-deploy
test-post-deploy-matlab-9.2.0_tcv: test-post-deploy-matlab-9.2.0_tcv:
extends: .test-post-deploy-template extends: .test-post-deploy-template
script:
- export
- mkdir -f /tmp/$USER; cd /tmp/$USER
variables: variables:
MATLABCMD: matlab920 MATLABCMD: matlab920
......
...@@ -16,9 +16,17 @@ classdef (SharedTestFixtures={... ...@@ -16,9 +16,17 @@ classdef (SharedTestFixtures={...
methods(Static) methods(Static)
function test_gdat_call(testCase,shot,request) function test_gdat_call(testCase,shot,request)
% actual function to test gdat call % actual function to test gdat call
import matlab.unittest.fixtures.WorkingFolderFixture;
testCase.assertTrue(isnumeric(str2double(shot))); testCase.assertTrue(isnumeric(str2double(shot)));
testCase.assertTrue(ischar(request)); testCase.assertTrue(ischar(request));
pwd
dirname_for_test = sprintf('/tmp/%s/gdat',getenv('USER')); % to have write permission
[dummy1,dummy2]=rmdir(dirname_for_test,'s');
mkdir(dirname_for_test);
f = WorkingFolderFixture(dirname_for_test);
testCase.applyFixture(f);
pwd
% gdat call % gdat call
gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'')'],shot,request); gdat_call = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'')'],shot,request);
do_gdat_call = 1; do_gdat_call = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment