Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-test
Commits
46a72e75
Verified
Commit
46a72e75
authored
Jul 05, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix fromJust runtime error when child gives unreadable messages
parent
06c34c0a
Pipeline
#12737
passed with stage
in 37 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
cleantest.icl
cleantest.icl
+6
-6
No files found.
cleantest.icl
View file @
46a72e75
...
...
@@ -311,9 +311,9 @@ where
// Check child output
#
(
continue
,
output
,
io
,
w
)
=
readPipes
output
pio
io
w
|
isError
continue
=
return
(
Failed
Nothing
)
r
io
w
|
continue
=:
(
Ok
False
)
|
continue
=:
(
Ok
False
)
#
results
=
map
(
fromJSON
o
fromString
)
$
filter
((<>)
""
)
output
.
lines
#
ee
=
mergeResul
ts
$
map
fromJust
results
#
ee
=
collectEven
ts
$
map
fromJust
results
=
return
ee
.
event
r
io
w
// Check if child has terminated
#
(
t
,
w
)
=
checkProcess
h
w
...
...
@@ -346,7 +346,7 @@ where
|
size
s
<=
n
=
s
|
otherwise
=
s
%
(
0
,
n
-4
)
+++
"..."
=
return
event
r
io
w
#
ee
=
mergeResul
ts
$
map
fromJust
results
#
ee
=
collectEven
ts
$
map
fromJust
results
#
io
=
emit
(
EndEvent
ee
)
io
|
fromJust
rcode
<>
0
#
event
=
Failed
Nothing
...
...
@@ -361,8 +361,8 @@ where
#
w
=
snd
$
fclose
io
w
=
redirect
output
h
pio
r
w
where
mergeResul
ts
::
[
TestEvent
]
->
EndEvent
mergeResul
ts
tes
=
collectEven
ts
::
[
TestEvent
]
->
EndEvent
collectEven
ts
tes
=
{
name
=
r
.
TestRun
.
name
,
event
=
if
(
isEmpty
failed
&&
isEmpty
lost
)
Passed
(
Failed
$
Just
$
FailedChildren
$
...
...
@@ -401,7 +401,7 @@ where
|
not
continue
&&
opts
.
stop_on_first_failure
->
(
continue
,
io
)
->
case
fromJSON
$
fromString
s
of
Nothing
->
(
Fals
e
,
io
)
Nothing
->
(
Tru
e
,
io
)
Just
ev
->
(
not
$
ev
=:(
EndEvent
{
event
=
Failed
_}),
emit
ev
io
))
output
(
True
,
io
)
...
...
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