Allow tool unit tests to provide multiple files to test against.

Review Request #11653 — Created June 12, 2021 and submitted

Information

ReviewBot
release-3.0.x

Reviewers

This adds an other_files argument to run_tool_execute() that
specifies a mapping of filenames to file contents. These files will be
written to the tree, allowing the tool to access those files. This is
mostly useful for full-repository unit tests.

When provided, the returned tuple will contain a mapping of filenames to
File entries, rather than a single File entry.

Used this along with the upcoming unit tests for Cargo.

Summary ID
Allow tool unit tests to provide multiple files to test against.
This adds an `other_files` argument to `run_tool_execute()` that specifies a mapping of filenames to file contents. These files will be written to the tree, allowing the tool to access those files. This is mostly useful for full-repository unit tests. When provided, the returned tuple will contain a mapping of filenames to `File` entries, rather than a single `File` entry.
56a2aa1ed3610bdea01d16002b77dac772a09faa
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (d2591b4)