summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Warren <earl-warren@noreply.codeberg.org>2024-07-14 22:07:52 +0200
committerEarl Warren <earl-warren@noreply.codeberg.org>2024-07-14 22:07:52 +0200
commit44524f1f290e03f0a3d57b41273cdaeee19d0c38 (patch)
tree9bb707cdcbb5422d97730c5c437e1858e9a78b1b
parentMerge pull request 'revert [v7.0/forgejo] test: issue sidebar testing using p... (diff)
parentMerge branch 'v7.0/forgejo' into bp-v7.0/forgejo-e3665c3 (diff)
downloadforgejo-44524f1f290e03f0a3d57b41273cdaeee19d0c38.tar.xz
forgejo-44524f1f290e03f0a3d57b41273cdaeee19d0c38.zip
Merge pull request '[v7.0/forgejo] tests(e2e): only run one test, not all of them each time' (#4497) from bp-v7.0/forgejo-e3665c3 into v7.0/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4497 Reviewed-by: Otto <otto@codeberg.org> Reviewed-by: Beowulf <beowulf@noreply.codeberg.org>
-rw-r--r--tests/e2e/e2e_test.go4
1 files changed, 3 insertions, 1 deletions
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