diff --git a/internal/cmd/integration-tests/main.go b/internal/cmd/integration-tests/main.go index b44288d98c..710458365b 100644 --- a/internal/cmd/integration-tests/main.go +++ b/internal/cmd/integration-tests/main.go @@ -61,6 +61,6 @@ func runIntegrationTests(cmd *cobra.Command, args []string) { panic(err) } logChan = make(chan TestLog, len(testDirs)) - runAllTests(alloyBinaryPath) + runAllTests(alloyBinaryPath, testFolder) } } diff --git a/internal/cmd/integration-tests/utils.go b/internal/cmd/integration-tests/utils.go index 6177f99f70..4d675efe06 100644 --- a/internal/cmd/integration-tests/utils.go +++ b/internal/cmd/integration-tests/utils.go @@ -90,8 +90,8 @@ func runSingleTest(alloyBinaryPath string, testDir string, port int) { } } -func runAllTests(alloyBinaryPath string) { - testDirs, err := filepath.Glob("./tests/*") +func runAllTests(alloyBinaryPath string, testFolder string) { + testDirs, err := filepath.Glob(testFolder + "*") if err != nil { panic(err) }