Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
69df66c7
Commit
69df66c7
authored
Sep 28, 2017
by
Sen Lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let node test subcommand be an arg
parent
d96c485f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
conformance-jenkins.sh
test/e2e_node/jenkins/conformance/conformance-jenkins.sh
+1
-1
run_remote.go
test/e2e_node/runner/remote/run_remote.go
+4
-14
No files found.
test/e2e_node/jenkins/conformance/conformance-jenkins.sh
View file @
69df66c7
...
...
@@ -32,7 +32,7 @@ TIMEOUT=${TIMEOUT:-"45m"}
mkdir
-p
${
ARTIFACTS
}
go run
test
/e2e_node/runner/remote/run_remote.go conformance
\
go run
test
/e2e_node/runner/remote/run_remote.go
--test-suite
=
conformance
\
--logtostderr
--vmodule
=
*
=
4
--ssh-env
=
"gce"
--ssh-user
=
"
$GCE_USER
"
\
--zone
=
"
$GCE_ZONE
"
--project
=
"
$GCE_PROJECT
"
--hosts
=
"
$GCE_HOSTS
"
\
--images
=
"
$GCE_IMAGES
"
--image-project
=
"
$GCE_IMAGE_PROJECT
"
\
...
...
test/e2e_node/runner/remote/run_remote.go
View file @
69df66c7
...
...
@@ -45,6 +45,7 @@ import (
)
var
testArgs
=
flag
.
String
(
"test_args"
,
""
,
"Space-separated list of arguments to pass to Ginkgo test runner."
)
var
testSuite
=
flag
.
String
(
"test-suite"
,
""
,
"Test suite the runner initializes with."
)
var
instanceNamePrefix
=
flag
.
String
(
"instance-name-prefix"
,
""
,
"prefix for instance names"
)
var
zone
=
flag
.
String
(
"zone"
,
""
,
"gce zone the hosts live in"
)
var
project
=
flag
.
String
(
"project"
,
""
,
"gce project the hosts live in"
)
...
...
@@ -143,14 +144,9 @@ type internalGCEImage struct {
tests
[]
string
}
// parseFlags parse subcommands and flags
func
parseFlags
()
{
if
len
(
os
.
Args
)
<=
1
{
glog
.
Fatalf
(
"Too few flags specified: %v"
,
os
.
Args
)
}
// Parse subcommand.
subcommand
:=
os
.
Args
[
1
]
switch
subcommand
{
func
main
()
{
flag
.
Parse
()
switch
*
testSuite
{
case
"conformance"
:
suite
=
remote
.
InitConformanceRemote
()
// TODO: Add subcommand for node soaking, node conformance, cri validation.
...
...
@@ -158,12 +154,6 @@ func parseFlags() {
// Use node e2e suite by default if no subcommand is specified.
suite
=
remote
.
InitNodeE2ERemote
()
}
// Parse test flags.
flag
.
CommandLine
.
Parse
(
os
.
Args
[
2
:
])
}
func
main
()
{
parseFlags
()
rand
.
Seed
(
time
.
Now
()
.
UTC
()
.
UnixNano
())
if
*
buildOnly
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment