Skip to content

Commit

Permalink
Fix path discovery to work on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Jan 14, 2024
1 parent 27f50b1 commit e168178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/mtail/exec_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import (
"errors"
"log"
"os/exec"
"path/filepath"
"testing"
"time"
)

var mtailPath string

func init() {
path, err := exec.LookPath("../../mtail")
path, err := exec.LookPath(filepath.Join("..", "..", "mtail"))
if errors.Is(err, exec.ErrDot) {
err = nil
}
Expand Down

0 comments on commit e168178

Please sign in to comment.