Fixed up the --home flag, ebuchman check this out

This commit is contained in:
Ethan Frey
2017-05-03 10:37:25 +02:00
committed by Ethan Buchman
parent d05b8131a3
commit ef3b9610a1
2 changed files with 9 additions and 2 deletions

View File

@ -103,6 +103,9 @@ func TestSetupConfig(t *testing.T) {
{nil, map[string]string{"RD_BOO": "bang"}, "bang"},
{nil, map[string]string{"RD_ROOT": conf1}, cval1},
{nil, map[string]string{"RDROOT": conf2}, cval2},
{nil, map[string]string{"RDHOME": conf1}, cval1},
// and when both are set??? HOME wins every time!
{[]string{"--root", conf1}, map[string]string{"RDHOME": conf2}, cval2},
}
for idx, tc := range cases {