Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Weber
load_leveller
Commits
7227d0c5
Commit
7227d0c5
authored
Jun 14, 2019
by
Lukas Weber
Browse files
run commands in shell to make segfaults visible to the user
parent
a4521853
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/loadl
View file @
7227d0c5
...
...
@@ -64,9 +64,9 @@ def run():
job_input_filename
=
job
.
write_job_input_file
()
if
args_run
.
single
:
cmd
=
[
job
.
jobconfig
[
'mc_binary'
],
'single'
,
job_input_filename
]
print
(
'$ '
+
' '
.
join
(
cmd
)
)
subprocess
.
run
(
cmd
)
cmd
=
'{} single "{}"'
.
format
(
job
.
jobconfig
[
'mc_binary'
],
job_input_filename
)
print
(
'$ '
+
cmd
)
subprocess
.
run
(
cmd
,
shell
=
True
)
else
:
clusterutils
.
run
(
job
.
jobname
,
job
.
jobconfig
,
[
job
.
jobconfig
[
'mc_binary'
],
job_input_filename
])
...
...
@@ -84,9 +84,9 @@ def delete():
def
merge
():
job_input_filename
=
job
.
write_job_input_file
()
cmd
=
[
job
.
jobconfig
[
'mc_binary'
],
'merge'
,
job_input_filename
]
print
(
'$ '
+
' '
.
join
(
cmd
)
)
subprocess
.
run
(
cmd
)
cmd
=
'{} merge "{}"'
.
format
(
job
.
jobconfig
[
'mc_binary'
],
job_input_filename
)
print
(
'$ '
+
cmd
)
subprocess
.
run
(
cmd
,
shell
=
True
)
def
status
():
from
loadleveller
import
jobstatus
...
...
Write
Preview
Supports
Markdown
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