You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add flags for augmenting commands which need to be run in the daemon-context to enable running tests from remote machines (runfinch#203)
* test: add flags for augmenting commands which need to be run in the daemon-context to enable running tests from remote machines
Signed-off-by: Justin Alvarez <[email protected]>
* fix copyright linting
Signed-off-by: Justin Alvarez <[email protected]>
---------
Signed-off-by: Justin Alvarez <[email protected]>
Copy file name to clipboardExpand all lines: e2e/e2e_test.go
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@ package e2e
5
5
6
6
import (
7
7
"flag"
8
+
"log"
8
9
"os"
10
+
"strings"
9
11
"testing"
10
12
11
13
"github.com/onsi/ginkgo/v2"
@@ -14,15 +16,24 @@ import (
14
16
"github.com/runfinch/common-tests/option"
15
17
16
18
"github.com/runfinch/finch-daemon/e2e/tests"
19
+
"github.com/runfinch/finch-daemon/e2e/util"
17
20
)
18
21
19
22
// Subject defines which CLI the tests are run against, defaults to \"nerdctl\" in the user's PATH.
20
23
varSubject=flag.String("subject", "nerdctl", `which CLI the tests are run against, defaults to "nerdctl" in the user's PATH.`)
24
+
varSubjectPrefix=flag.String("daemon-context-subject-prefix", "", `A string which prefixes the command the tests are run against, defaults to "". This string will be split by spaces.`)
25
+
varPrefixedSubjectEnv=flag.String("daemon-context-subject-env", "", `Environment to add when running a prefixed subject, in the form of a string like "EXAMPLE=foo EXAMPLE2=bar"`)
21
26
22
27
funcTestRun(t*testing.T) {
23
28
ifos.Getenv("TEST_E2E") !="1" {
24
29
t.Skip("E2E tests skipped. Set TEST_E2E=1 to run these tests")
0 commit comments