From f4fda5c7b272bb7718a9352f073113fd8266875d Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 14 Jul 2024 13:56:32 +0200 Subject: [PATCH] tests(e2e): only run one test, not all of them each time (cherry picked from commit e3665c30422546d9607d5f758c5b4973f05b53d8) --- tests/e2e/e2e_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/e2e_test.go b/tests/e2e/e2e_test.go index 92c90f52e6..ae8e8e90a3 100644 --- a/tests/e2e/e2e_test.go +++ b/tests/e2e/e2e_test.go @@ -100,7 +100,9 @@ func TestE2e(t *testing.T) { t.Run(testname, func(t *testing.T) { // Default 2 minute timeout 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 = append(cmd.Env, fmt.Sprintf("GITEA_URL=%s", setting.AppURL)) var stdout, stderr bytes.Buffer