Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up test logs #190

Merged
merged 2 commits into from
Sep 30, 2019
Merged

Clean up test logs #190

merged 2 commits into from
Sep 30, 2019

Conversation

qinqon
Copy link
Member

@qinqon qinqon commented Sep 30, 2019

No description provided.

@qinqon qinqon requested a review from phoracek September 30, 2019 08:34
@@ -223,7 +223,7 @@ func run(node string, command ...string) (string, error) {
cmd.Stderr = &stderr
cmd.Stdout = &stdout
err := cmd.Run()
GinkgoWriter.Write([]byte(stdout.String() + stderr.String() + "\n"))
GinkgoWriter.Write([]byte(fmt.Sprintf("stdout: %.500s...\n, stderr %s\n", stdout.String(), stderr.String())))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you think it would be worth setting this via an environment variable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do like this, in case of error vlans are show in full so we are good, another option is to dump to files the full output and print the truncated ones.

test/e2e/utils.go Outdated Show resolved Hide resolved
test/e2e/utils.go Outdated Show resolved Hide resolved
phoracek
phoracek previously approved these changes Sep 30, 2019
@phoracek
Copy link
Member

@qinqon

test/e2e/utils.go:66:20: undefined: strings.ReplaceAll

@qinqon
Copy link
Member Author

qinqon commented Sep 30, 2019

@phoracek fixed, ReplaceAll is not at golang 1.11

@phoracek phoracek merged commit 3cdda76 into nmstate:master Sep 30, 2019
cybertron pushed a commit to cybertron/kubernetes-nmstate that referenced this pull request Aug 27, 2021
UPSTREAM: <carry>: Add manifests to .PHONY in Makefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants