fix 22: require prefix './' for local actions

This commit is contained in:
Casey Lee
2019-01-24 22:17:58 -08:00
parent 320e9b6057
commit ca268132b9
2 changed files with 6 additions and 3 deletions

View File

@@ -43,7 +43,8 @@ func TestParseImageLocal(t *testing.T) {
}{
{"docker://myhost.com/foo/bar", "", "", false},
{"http://google.com:8080", "", "", false},
{"example/action1", "/example/action1", "action1:", true},
{"example/action1", "", "", false},
{"./example/action1", "/example/action1", "action1:", true},
}
revision, _, err := common.FindGitRevision(".")