Skip to content

Commit

Permalink
Fix the extraction of the tools in robot for the new layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard committed Feb 15, 2019
1 parent 0537f87 commit a14f373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/robot/build/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ func (a *artifacts) get(ctx context.Context, id string, builderAbi *device.ABI)
l := layout.NewZipLayout(zipFile, builderAbi.OS)

toolSet := ToolSet{Abi: builderAbi, Host: new(HostToolSet)}
if toolSet.Host.Gapir, err = a.getID(ctx, l.Gapir, "gapir"); err != nil {
if toolSet.Host.Gapir, err = a.getID(ctx, func(ctx context.Context) (*zip.File, error) {
return l.Gapir(ctx, nil)
}, "gapir"); err != nil {
return nil, err
}
if toolSet.Host.Gapis, err = a.getID(ctx, l.Gapis, "gapis"); err != nil {
Expand All @@ -138,7 +140,7 @@ func (a *artifacts) get(ctx context.Context, id string, builderAbi *device.ABI)
return nil, err
}
if toolSet.Host.VirtualSwapChainLib, err = a.getID(ctx, func(ctx context.Context) (*zip.File, error) {
return l.Library(ctx, layout.LibVirtualSwapChain)
return l.Library(ctx, layout.LibVirtualSwapChain, nil)
}, "libVirtualSwapChain"); err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion test/robot/replay/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func doReplay(ctx context.Context, action string, in *Input, store *stash.Client
if err != nil {
return nil, err
}
gapir, err := extractedLayout.Gapir(ctx)
gapir, err := extractedLayout.Gapir(ctx, nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a14f373

Please sign in to comment.