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
Tags crpptbx-release-v4.3.95
1 merge request!168D3d add nete rho
Pipeline #205302 failed
......@@ -76,9 +76,6 @@ deploy:
# test post-deploy
test-post-deploy-matlab-9.2.0_tcv:
extends: .test-post-deploy-template
script:
- export
- mkdir -f /tmp/$USER; cd /tmp/$USER
variables:
MATLABCMD: matlab920
......
......@@ -16,9 +16,17 @@ classdef (SharedTestFixtures={...
methods(Static)
function test_gdat_call(testCase,shot,request)
% actual function to test gdat call
import matlab.unittest.fixtures.WorkingFolderFixture;
testCase.assertTrue(isnumeric(str2double(shot)));
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 = sprintf(['gdat_' lower(testCase.Machine) '(%s,''%s'')'],shot,request);
do_gdat_call = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment