Skip to content

GetContextFromLocalDir tests confused by symlinks on OSX #209

@dave-tucker

Description

@dave-tucker

For example:

--- FAIL: TestGetContextFromLocalDirWithNoDirectory (0.00s)
        Error Trace:    context_test.go:84
	Error:      	Not equal:
	            	expected: "/var/folders/_z/phfwjxz50w1clqsnlf4g2ym80000gp/T/builder-context-test687047581"
	            	received: "/private/var/folders/_z/phfwjxz50w1clqsnlf4g2ym80000gp/T/builder-context-test687047581"
=== RUN   TestGetContextFromLocalDirWithDockerfile
--- FAIL: TestGetContextFromLocalDirWithDockerfile (0.00s)
        Error Trace:    context_test.go:97
	Error:      	Not equal:
	            	expected: "/var/folders/_z/phfwjxz50w1clqsnlf4g2ym80000gp/T/builder-context-test205698136"
	            	received: "/private/var/folders/_z/phfwjxz50w1clqsnlf4g2ym80000gp/T/builder-context-test205698136"
=== RUN   TestGetContextFromLocalDirLocalFile
--- PASS: TestGetContextFromLocalDirLocalFile (0.00s)
=== RUN   TestGetContextFromLocalDirWithCustomDockerfile
--- FAIL: TestGetContextFromLocalDirWithCustomDockerfile (0.00s)
        Error Trace:    context_test.go:135
	Error:      	Not equal:
	            	expected: "/var/folders/_z/phfwjxz50w1clqsnlf4g2ym80000gp/T/builder-context-test009992522"
	            	received: "/private/var/folders/_z/phfwjxz50w1clqsnlf4g2ym80000gp/T/builder-context-test009992522"

On OSX, /var is a symlink to /private/var which causes the tests to fail.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions