Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IPDSnelting
mjtest
Commits
eb0f021b
Commit
eb0f021b
authored
Nov 26, 2016
by
Johannes Bechberger
Browse files
Fix #36
parent
99df6a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
mjtest/util/shell.py
View file @
eb0f021b
...
...
@@ -125,7 +125,7 @@ def execute(cmd, env=None, timeout=0, rlimit=None, propagate_sigint=True):
#cmd = filter(lambda x: x, cmd.split(' '))
else
:
#cmd = shlex.split(cmd[0]) + cmd[1:]
cmd
=
cmd
[
0
]
+
" "
+
" "
.
join
(
shlex
.
quote
(
c
)
for
c
in
cmd
[
1
:]
)
cmd
=
" "
.
join
(
shlex
.
quote
(
c
)
for
c
in
cmd
)
exc
=
_Execute
(
cmd
,
timeout
,
env
,
rlimit
)
(
out
,
err
,
returncode
)
=
exc
.
run
()
if
returncode
==
-
signal
.
SIGINT
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment