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
fade7a50
Verified
Commit
fade7a50
authored
Jul 06, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using readPipeBlockingMulti (see
clean-platform#53
)
parent
46a72e75
Pipeline
#12748
passed with stage
in 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
cleantest.icl
cleantest.icl
+8
-4
No files found.
cleantest.icl
View file @
fade7a50
...
...
@@ -385,9 +385,12 @@ where
readPipes
::
!*
ProcessOutput
!
ProcessIO
!*
File
!*
World
->
*(!
MaybeOSError
Bool
,
!*
ProcessOutput
,
!*
File
,
!*
World
)
readPipes
output
pio
io
w
#
(
ss
,
w
)
=
readPipeBlockingMulti
[
pio
.
stdOut
,
pio
.
stdErr
]
w
|
isError
ss
#
oserr
=:(
err
,
msg
)
=
fromError
ss
#
(
out
,
w
)
=
readPipeBlocking
pio
.
stdOut
w
#
(
err
,
w
)
=
readPipeNonBlocking
pio
.
stdErr
w
|
isError
out
||
isError
err
#
oserr
=:(
err
,
msg
)
=
case
out
of
Error
e
->
e
_
->
fromError
err
#
event
=
Failed
Nothing
#
io
=
emit
(
EndEvent
{
name
=
r
.
TestRun
.
name
...
...
@@ -395,7 +398,8 @@ where
,
message
=
"Failed to read child process IO ("
<+
err
<+
"; "
<+
msg
<+
")"
})
io
=
(
Error
oserr
,
output
,
io
,
w
)
#
[
out
,
err
:_]
=
fromOk
ss
#
out
=
fromOk
out
#
err
=
fromOk
err
#
(
output
,(
continue
,
io
))
=
append
out
(\
s
(
continue
,
io
)
|
not
continue
&&
opts
.
stop_on_first_failure
...
...
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