mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 02:07:38 +00:00
make test-e2e-node
runs the same test with pr builder by default.
This commit is contained in:
@@ -18,7 +18,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
|
|||||||
source "${KUBE_ROOT}/hack/lib/init.sh"
|
source "${KUBE_ROOT}/hack/lib/init.sh"
|
||||||
|
|
||||||
focus=${FOCUS:-""}
|
focus=${FOCUS:-""}
|
||||||
skip=${SKIP:-""}
|
skip=${SKIP-"\[Flaky\]|\[Slow\]|\[Serial\]"}
|
||||||
# The number of tests that can run in parallel depends on what tests
|
# The number of tests that can run in parallel depends on what tests
|
||||||
# are running and on the size of the node. Too many, and tests will
|
# are running and on the size of the node. Too many, and tests will
|
||||||
# fail due to resource contention. 8 is a reasonable default for a
|
# fail due to resource contention. 8 is a reasonable default for a
|
||||||
|
@@ -317,7 +317,11 @@ func getTestArtifacts(host, testDir string) error {
|
|||||||
// in the runner. This is used to collect serial console log.
|
// in the runner. This is used to collect serial console log.
|
||||||
// TODO(random-liu): Use the log-dump script in cluster e2e.
|
// TODO(random-liu): Use the log-dump script in cluster e2e.
|
||||||
func WriteLog(host, filename, content string) error {
|
func WriteLog(host, filename, content string) error {
|
||||||
f, err := os.Create(filepath.Join(*resultsDir, host, filename))
|
logPath := filepath.Join(*resultsDir, host)
|
||||||
|
if err := os.MkdirAll(logPath, 0755); err != nil {
|
||||||
|
return fmt.Errorf("failed to create log directory %q: %v", logPath, err)
|
||||||
|
}
|
||||||
|
f, err := os.Create(filepath.Join(logPath, filename))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user