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

use provided tmp folder

parent f7f1a4e7
No related branches found
No related tags found
1 merge request!168D3d add nete rho
Pipeline #205309 passed
...@@ -21,11 +21,11 @@ classdef (SharedTestFixtures={... ...@@ -21,11 +21,11 @@ classdef (SharedTestFixtures={...
testCase.assertTrue(isnumeric(str2double(shot))); testCase.assertTrue(isnumeric(str2double(shot)));
testCase.assertTrue(ischar(request)); testCase.assertTrue(ischar(request));
pwd pwd
dirname_for_test = sprintf('/tmp/%s/gdat',getenv('USER')); % to have write permission % $$$ dirname_for_test = sprintf('/tmp/%s/gdat',getenv('USER')); % to have write permission
[dummy1,dummy2]=rmdir(dirname_for_test,'s'); % $$$ [dummy1,dummy2]=rmdir(dirname_for_test,'s');
mkdir(dirname_for_test); % $$$ mkdir(dirname_for_test);
%f = WorkingFolderFixture(dirname_for_test); f=matlab.unittest.fixtures.WorkingFolderFixture('withsuffix','_gdat');
testCase.applyFixture(dirname_for_test); testCase.applyFixture(f);
pwd 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment