tests: convert windows style path to posix style path to avoid hcl parsing error (#6351)
This commit is contained in:
parent
7f610f275d
commit
5ac14438b0
|
@ -149,6 +149,10 @@ func (a *TestAgent) Start() (err error) {
|
|||
if err != nil {
|
||||
return fmt.Errorf("Error creating data dir %s: %s", filepath.Join(TempDir, name), err)
|
||||
}
|
||||
// Convert windows style path to posix style path
|
||||
// to avoid illegal char escape error when hcl
|
||||
// parsing.
|
||||
d = filepath.ToSlash(d)
|
||||
hclDataDir = `data_dir = "` + d + `"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue