mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Fix more tests on Windows (#1824)
Signed-off-by: eduzgun <emreduz00@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -197,7 +198,8 @@ func setupBinary() func() {
|
||||
os.Exit(1)
|
||||
}
|
||||
// Getting top level dir
|
||||
dirPaths := strings.Split(currentDir, "/")
|
||||
newDir := filepath.ToSlash(currentDir)
|
||||
dirPaths := strings.Split(newDir, "/")
|
||||
log.Println(currentDir)
|
||||
topLevel := len(dirPaths) - 3
|
||||
topDir := strings.Join(dirPaths[0:topLevel], "/")
|
||||
|
||||
Reference in New Issue
Block a user