Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda
installer
Commits
1098bf66
Commit
1098bf66
authored
Aug 12, 2021
by
Paul McCarthy
🚵
Browse files
TEST: make monitor progress test slightly more robust
parent
bd3de69d
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_routines.py
View file @
1098bf66
...
...
@@ -147,6 +147,7 @@ def test_Process_monitor_progress():
for ((i=0;i<10;i++)); do
echo $i
done
touch $1
"""
).
strip
()
with
open
(
'script'
,
'wt'
)
as
f
:
...
...
@@ -154,14 +155,22 @@ def test_Process_monitor_progress():
os
.
chmod
(
'script'
,
0o755
)
script
=
op
.
join
(
cwd
,
'script'
)
script
=
op
.
join
(
cwd
,
'script'
)
inst
.
Process
.
monitor_progress
(
script
)
inst
.
Process
.
monitor_progress
([
script
])
inst
.
Process
.
monitor_progress
([
script
,
script
])
inst
.
Process
.
monitor_progress
(
script
,
10
)
inst
.
Process
.
monitor_progress
([
script
],
10
)
inst
.
Process
.
monitor_progress
([
script
,
script
],
10
)
# py2: make sure function accepts string and unicode
scripts
=
[
script
,
u
'{}'
.
format
(
script
)]
for
script
in
scripts
:
inst
.
Process
.
monitor_progress
(
script
+
' a'
)
inst
.
Process
.
monitor_progress
([
script
+
' b'
])
inst
.
Process
.
monitor_progress
([
script
+
' c'
,
script
+
' d'
])
inst
.
Process
.
monitor_progress
(
script
+
' e'
,
10
)
inst
.
Process
.
monitor_progress
([
script
+
' f'
],
10
)
inst
.
Process
.
monitor_progress
([
script
+
' g'
,
script
+
' h'
],
10
)
for
touched
in
'abcdefgh'
:
assert
op
.
exists
(
touched
)
os
.
remove
(
touched
)
def
test_read_fslversion
():
...
...
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