-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I was accidentally copying the mixin runtime binary into the wrong directory under PORTER_HOME. Signed-off-by: Carolyn Van Slyck <[email protected]>
- Loading branch information
Showing
5 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package mixins | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestInstall(t *testing.T) { | ||
magefile := NewMagefile("github.com/mymixin/test-mixin", "testmixin", "testdata/bin/mixins/testmixin") | ||
|
||
// Change the porter home to a safe place for the test to write to | ||
os.Setenv("PORTER_HOME", "testdata/porter_home") | ||
defer os.Unsetenv("PORTER_HOME") | ||
|
||
magefile.Install() | ||
|
||
assert.DirExists(t, "testdata/porter_home/mixins/testmixin", "The mixin directory doesn't exist") | ||
assert.FileExists(t, "testdata/porter_home/mixins/testmixin/testmixin", "The client wasn't installed") | ||
assert.DirExists(t, "testdata/porter_home/mixins/testmixin/runtimes", "The mixin runtimes directory doesn't exist") | ||
assert.FileExists(t, "testdata/porter_home/mixins/testmixin/runtimes/testmixin-runtime", "The runtime wasn't installed") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
porter_home |
Empty file.
Empty file.