Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
gridtk
Commits
00c6750f
Commit
00c6750f
authored
Dec 22, 2016
by
André Anjos
💬
Browse files
Make tests robust to spurions stderr messages caused by broken libs on the environment
parent
5b232e5b
Pipeline
#6010
passed with stages
in 4 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gridtk/tests/__init__.py
View file @
00c6750f
...
...
@@ -165,7 +165,7 @@ class GridTKTest(unittest.TestCase):
self
.
assertTrue
(
os
.
path
.
isfile
(
out_file
))
self
.
assertTrue
(
os
.
path
.
isfile
(
err_file
))
self
.
assertEqual
(
open
(
out_file
).
read
().
rstrip
(),
'This is a text message to std-out'
)
self
.
assert
Equal
(
open
(
err_file
).
read
().
split
(
'
\n
'
)[
0
],
'This is a text message to std-err'
)
self
.
assert
True
(
'This is a text message to std-err'
in
open
(
err_file
).
read
().
split
(
'
\n
'
)
)
# resubmit all jobs
jman
.
main
([
'./bin/jman'
,
'--local'
,
'--database'
,
self
.
database
,
'resubmit'
,
'--running-jobs'
])
...
...
@@ -185,7 +185,7 @@ class GridTKTest(unittest.TestCase):
self
.
assertTrue
(
os
.
path
.
isfile
(
out_file
))
self
.
assertTrue
(
os
.
path
.
isfile
(
err_file
))
self
.
assertEqual
(
open
(
out_file
).
read
().
rstrip
(),
'This is a text message to std-out'
)
self
.
assert
Equal
(
open
(
err_file
).
read
().
split
(
'
\n
'
)[
1
],
'This is a text message to std-err'
)
self
.
assert
True
(
'This is a text message to std-err'
in
open
(
err_file
).
read
().
split
(
'
\n
'
)
)
# check that exactly four output and four error files have been created
files
=
os
.
listdir
(
self
.
log_dir
)
...
...
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