summaryrefslogtreecommitdiff
path: root/test/endpoint/endpoint.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/endpoint/endpoint.go')
-rw-r--r--test/endpoint/endpoint.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/endpoint/endpoint.go b/test/endpoint/endpoint.go
index 4f9e6055e..78aa957ab 100644
--- a/test/endpoint/endpoint.go
+++ b/test/endpoint/endpoint.go
@@ -189,6 +189,11 @@ func (p *EndpointTestIntegration) Varlink(endpoint, message string, more bool) *
return &EndpointSession{session}
}
+func (s *EndpointSession) StdErrToString() string {
+ fields := strings.Fields(fmt.Sprintf("%s", s.Err.Contents()))
+ return strings.Join(fields, " ")
+}
+
func (s *EndpointSession) OutputToString() string {
fields := strings.Fields(fmt.Sprintf("%s", s.Out.Contents()))
return strings.Join(fields, " ")