Commit Graph

5 Commits (hwdef/master)

Author SHA1 Message Date
Eng Zer Jun 9d85be1a99
test: use `T.Setenv` to set env vars in tests
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-11-08 10:30:29 +08:00
Anders F Björklund da778ea870 Some more cleanup of missing code for podman-env
There is a lot of code duplication from docker-env

Most of it also applies for podman (CONTAINER_HOST)
2020-11-29 23:35:37 +01:00
Ilya Zuyev d5a092c3c7 Add unit tests for oci.DaemonHost() 2020-10-30 14:00:52 -07:00
Ilya Zuyev 85d45be207 Fix docker-env command 2020-10-20 23:10:08 -07:00
Ilya Zuyev d384343c39 When configuring docker environment, use MINIKUBE_EXISTING_* variables if set 2020-10-19 22:02:42 -07:00