Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
fff3bce1
"README.md" did not exist on "dffafe565b41f4813c8eba1ecdfdb03a0df27136"
Commit
fff3bce1
authored
3 years ago
by
Henry Luetcke
Committed by
Adam Laskowski
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add break in teardown for manual emptying of trashcan
parent
570a6f64
No related branches found
No related tags found
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
obi_test.m
+9
-2
9 additions, 2 deletions
obi_test.m
with
9 additions
and
2 deletions
obi_test.m
+
9
−
2
View file @
fff3bce1
function
pass
=
obi_test
(
varargin
)
function
obi_test
(
varargin
)
%obi_test Testing function for the Matlab openBIS Toolbox
%obi_test Testing function for the Matlab openBIS Toolbox
% This function runs a few tests for the Matlab openBIS Toolbox. It
% This function runs a few tests for the Matlab openBIS Toolbox. It
% returns true if all the tests pass successfully and fasle otherwise.
% returns true if all the tests pass successfully and fasle otherwise.
% Input argumtents (all optional):
% Input argumtents (all optional):
% teardown ... delete everything at the end (true)
% teardown ... delete everything at the end (true)
pass
=
true
;
if
nargin
==
1
if
nargin
==
1
teardown
=
varargin
{
1
};
teardown
=
varargin
{
1
};
...
@@ -101,6 +100,11 @@ end
...
@@ -101,6 +100,11 @@ end
%% 7. Tear-down (delete everything, optional)
%% 7. Tear-down (delete everything, optional)
% Note: it is currently not possible to delete all openBIS automatically.
% The reason is that pyBIS can only delete experiments / datasets by moving
% them to the openBIS trashcan. Emptying the trashcan can only be done
% manually. As long as the experiment is still in the trashscan, the
% corresponding project and space cannot be deleted.
if
teardown
if
teardown
fprintf
(
'\n\n%s - Starting tear-down'
,
datestr
(
clock
,
31
))
fprintf
(
'\n\n%s - Starting tear-down'
,
datestr
(
clock
,
31
))
% delete the created local files
% delete the created local files
...
@@ -111,6 +115,9 @@ if teardown
...
@@ -111,6 +115,9 @@ if teardown
obi
.
delete_experiment
(
exp
,
'created by Matlab-openBIS toolbox test function'
);
obi
.
delete_experiment
(
exp
,
'created by Matlab-openBIS toolbox test function'
);
fprintf
(
'\n%s - Successfully deleted Experiment %s\n'
,
datestr
(
clock
,
31
),
exp_name
)
fprintf
(
'\n%s - Successfully deleted Experiment %s\n'
,
datestr
(
clock
,
31
),
exp_name
)
fprintf
(
'\n\nPlease empty experiment %s manually from the openBIS trashcan, then press any key to continue.\n'
,
exp_name
)
pause
()
% delete openBIS project
% delete openBIS project
obi
.
delete_project
(
project_name
,
'created by Matlab-openBIS toolbox test function'
);
obi
.
delete_project
(
project_name
,
'created by Matlab-openBIS toolbox test function'
);
fprintf
(
'\n%s - Successfully deleted Project %s\n'
,
datestr
(
clock
,
31
),
project_name
)
fprintf
(
'\n%s - Successfully deleted Project %s\n'
,
datestr
(
clock
,
31
),
project_name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment