mirror of
https://github.com/hashicorp/packer.git
synced 2026-04-22 22:59:46 -04:00
When using a PackerCommand, the Run function was made public as a way to access the contents of an execution. This was clumsy as it had too many responsabilities, and was not needed strictly as Assert was performing the executions, as many times as required. This could introduce cases in which one run as spent by the caller, then the remainder were executed through Assert. Therefore, we change this convention. Now, run is private to the type, and only through Assert can a command be executed. If a test needs access to a command's output, stderr, or error, it can do so through the Output function, which requires Assert to be called first. |
||
|---|---|---|
| .. | ||
| templates | ||
| init_test.go | ||
| install_test.go | ||
| loading_test.go | ||
| plugins_remove_test.go | ||
| sample_config.json | ||
| suite_test.go | ||