mirror of
1
Fork 0

tests(e2e): only run one test, not all of them each time

(cherry picked from commit e3665c3042)
This commit is contained in:
Earl Warren 2024-07-14 13:56:32 +02:00 committed by GitHub
parent 118b8eb9c1
commit f4fda5c7b2
1 changed files with 3 additions and 1 deletions

View File

@ -100,7 +100,9 @@ func TestE2e(t *testing.T) {
t.Run(testname, func(t *testing.T) { t.Run(testname, func(t *testing.T) {
// Default 2 minute timeout // Default 2 minute timeout
onGiteaRun(t, func(*testing.T, *url.URL) { onGiteaRun(t, func(*testing.T, *url.URL) {
cmd := exec.Command(runArgs[0], runArgs...) thisTest := runArgs
thisTest = append(thisTest, path)
cmd := exec.Command(runArgs[0], thisTest...)
cmd.Env = os.Environ() cmd.Env = os.Environ()
cmd.Env = append(cmd.Env, fmt.Sprintf("GITEA_URL=%s", setting.AppURL)) cmd.Env = append(cmd.Env, fmt.Sprintf("GITEA_URL=%s", setting.AppURL))
var stdout, stderr bytes.Buffer var stdout, stderr bytes.Buffer