pulumi/pkg/testing
Abhinav Gupta ec55d4c6f1
chore(all): Log to iotest.LogWriter from tests
There are very few direct uses of os.Stderr and os.Stdout in our tests.
Switch these to use iotest.LogWriter where appropriate,
so they log messages to the appropriate testing.TB.
In case of failure, these messages will be properly associated to the
test/subtest that they were for
instead of being printed all to stdout/stderr.

Uses of os.Stdout/Stderr that were omitted:

- Example tests: These don't have a testing.TB to log to.
- pulumi/main_test: Replaces the global os.Stdout/Stderr in TestMain.
  LogWriter isn't relevant there.
2023-03-07 11:27:47 -08:00
..
integration chore(all): Log to iotest.LogWriter from tests 2023-03-07 11:27:47 -08:00