Merge pull request #787 from harshavardhana/pr_out_fix_mcconfigdir_path_test_for_windows
This commit is contained in:
+6
-6
@@ -154,13 +154,13 @@ func (s *CmdTestSuite) TestGetMcConfigDir(c *C) {
|
||||
c.Assert(err, IsNil)
|
||||
switch runtime.GOOS {
|
||||
case "linux":
|
||||
c.Assert(dir, Equals, path.Join(customConfigDir, ".mc/"))
|
||||
case "windows":
|
||||
c.Assert(dir, Equals, path.Join(customConfigDir, "mc/"))
|
||||
case "darwin":
|
||||
c.Assert(dir, Equals, path.Join(customConfigDir, ".mc/"))
|
||||
fallthrough
|
||||
case "freebsd":
|
||||
c.Assert(dir, Equals, path.Join(customConfigDir, ".mc/"))
|
||||
fallthrough
|
||||
case "darwin":
|
||||
c.Assert(dir, Equals, path.Join(customConfigDir, mcConfigDir))
|
||||
case "windows":
|
||||
c.Assert(dir, Equals, path.Join(customConfigDir, mcConfigWindowsDir))
|
||||
default:
|
||||
c.Fail()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user