autogits/workflow-pr/review_test.go
2024-12-16 08:15:49 +01:00

20 lines
296 B
Go

package main
import (
"os"
"os/exec"
"path"
"testing"
)
func TestReview(t *testing.T) {
cwd, _ := os.Getwd()
cmd := exec.Command("/usr/bin/bash", path.Join(cwd, "test_repo_setup.sh"))
cmd.Dir = t.TempDir()
if out, err := cmd.CombinedOutput(); err != nil {
t.Fatal(string(out))
}
}