aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vminfo
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-05-07 19:11:42 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-05-16 15:38:27 +0000
commita10940b81777718365ee7f71495abdc69a32285b (patch)
tree415a9d17232b2f7c09c85e7ddffc107500aeee97 /pkg/vminfo
parentb6954dce2f21b8feb1448edaaeeefc22f5ff4944 (diff)
pkg/runtest: use queue.Request and queue.Result
There's no need to duplicate the execution mechanisms.
Diffstat (limited to 'pkg/vminfo')
-rw-r--r--pkg/vminfo/features.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/vminfo/features.go b/pkg/vminfo/features.go
index ab71e1168..fb443774c 100644
--- a/pkg/vminfo/features.go
+++ b/pkg/vminfo/features.go
@@ -176,7 +176,10 @@ func (ctx *checkContext) featureSucceeded(feat flatrpc.Feature, testProg *prog.P
if len(res.Output) != 0 {
return string(res.Output)
}
- return res.Error
+ if res.Err != nil {
+ return res.Err.Error()
+ }
+ return "test program execution failed"
}
if len(res.Info.Calls) != len(testProg.Calls) {
return fmt.Sprintf("only %v calls are executed out of %v",