Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 492ca05f authored by Edward Liaw's avatar Edward Liaw
Browse files

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: default avatarEdward Liaw <edliaw@google.com>
parent eb67c30d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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)
}