@@ -28,7 +28,7 @@ func TestParsePlaybook(t *testing.T) {
2828 hosts: all` ))
2929 },
3030
31- want : []string {},
31+ want : []string {"." },
3232 },
3333 {
3434 caseName : "playbook_with_single_role_explicit_path" ,
@@ -42,7 +42,7 @@ func TestParsePlaybook(t *testing.T) {
4242` ))
4343 ds .SetFile ("roles/r1" , []byte ("" ))
4444 },
45- want : []string {"roles/r1" },
45+ want : []string {"." , " roles/r1" },
4646 },
4747 {
4848 caseName : "playbook_with_single_role_implicit_path" ,
@@ -56,7 +56,7 @@ func TestParsePlaybook(t *testing.T) {
5656` ))
5757 ds .SetFile ("roles/r2" , []byte ("" ))
5858 },
59- want : []string {"roles/r2" },
59+ want : []string {"." , " roles/r2" },
6060 },
6161 {
6262 caseName : "playbook_with_multiple_roles" ,
@@ -72,7 +72,7 @@ func TestParsePlaybook(t *testing.T) {
7272 ds .SetFile ("roles/r1" , []byte ("" ))
7373 ds .SetFile ("roles/r2" , []byte ("" ))
7474 },
75- want : []string {"roles/r1" , "roles/r2" },
75+ want : []string {"." , " roles/r1" , "roles/r2" },
7676 },
7777 {
7878 caseName : "playbook_not_exist" ,
0 commit comments