mirror of
https://github.com/moby/moby.git
synced 2026-07-10 00:28:51 +00:00
If neither of the DOCKER_INTEGRATION_DAEMON_DEST or DEST environment variables are set, integration tests panic with a nil-dereference panic in os.(*File).Name(...). This is a very unhelpful behaviour for someone trying to run integration tests interactively. Fix up the logic to avoid dereferencing nil os.File pointers and instead fail the test immediately with an actionable error message. Signed-off-by: Cory Snider <csnider@mirantis.com>