Playground for tests of workflow automation and containers repository structure
Go to file
Kir Kolyshkin c2dee68766 Use t.Setenv in tests
Using os.Setenv in tests is problematic, because the change is
process-wise and other tests running in parallel might be affected.
Also, a somewhat complicated cleanup is needed.

Both issues are solved by using t.Setenv.

This commit also uses t.TempDir, t.Cleanup, and t.Helper when it makes
sense.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-14 11:16:55 -07:00
common Use t.Setenv in tests 2025-04-14 11:16:55 -07:00