Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
d6852e79
Commit
d6852e79
authored
Aug 26, 2021
by
Antoine Kaufmann
Browse files
experiments: cleanup shared memory even when placed in separate dir
parent
8c4a580b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
experiments/simbricks/runtime/common.py
experiments/simbricks/runtime/common.py
+2
-0
No files found.
experiments/simbricks/runtime/common.py
View file @
d6852e79
...
@@ -39,6 +39,8 @@ class Run(object):
...
@@ -39,6 +39,8 @@ class Run(object):
async
def
prep_dirs
(
self
,
exec
=
exectools
.
LocalExecutor
()):
async
def
prep_dirs
(
self
,
exec
=
exectools
.
LocalExecutor
()):
shutil
.
rmtree
(
self
.
env
.
workdir
,
ignore_errors
=
True
)
shutil
.
rmtree
(
self
.
env
.
workdir
,
ignore_errors
=
True
)
await
exec
.
rmtree
(
self
.
env
.
workdir
)
await
exec
.
rmtree
(
self
.
env
.
workdir
)
shutil
.
rmtree
(
self
.
env
.
shm_base
,
ignore_errors
=
True
)
await
exec
.
rmtree
(
self
.
env
.
shm_base
)
if
self
.
env
.
create_cp
:
if
self
.
env
.
create_cp
:
shutil
.
rmtree
(
self
.
env
.
cpdir
,
ignore_errors
=
True
)
shutil
.
rmtree
(
self
.
env
.
cpdir
,
ignore_errors
=
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment