diff options
author | 2023-08-07 19:03:22 +0000 | |
---|---|---|
committer | 2023-09-13 19:20:42 +0000 | |
commit | 492ca05fe03ac8311aac63f6eddac0e9c2abd33d (patch) | |
tree | ea213db2403858487617f6e93ffea89491573c9e /sh/sh_binary.go | |
parent | eb67c30daeed2128a6593313171d0267c991ffee (diff) |
sh_binary: Implement OutputFileProducer for sh_test
When added as a data dependency, the output of sh_test does not get
included. It needs to define OutputFiles in order to implement the
OutputFileProducer interface.
Bug: 293944582
Test: N/A
Change-Id: Ic27741ed584523f5e1efd7caa8b872fe50cce381
Signed-off-by: Edward Liaw <edliaw@google.com>
Diffstat (limited to 'sh/sh_binary.go')
-rw-r--r-- | sh/sh_binary.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sh/sh_binary.go b/sh/sh_binary.go index 00794cdbe..4fe6fdda0 100644 --- a/sh/sh_binary.go +++ b/sh/sh_binary.go @@ -190,6 +190,15 @@ func (s *ShBinary) OutputFile() android.OutputPath { return s.outputFilePath } +func (s *ShBinary) OutputFiles(tag string) (android.Paths, error) { + switch tag { + case "": + return android.Paths{s.outputFilePath}, nil + default: + return nil, fmt.Errorf("unsupported module reference tag %q", tag) + } +} + func (s *ShBinary) SubDir() string { return proptools.String(s.properties.Sub_dir) } |