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

TestSignal unit test failes #14846

Closed
mkumatag opened this issue Nov 24, 2022 · 1 comment · Fixed by #14847
Closed

TestSignal unit test failes #14846

mkumatag opened this issue Nov 24, 2022 · 1 comment · Fixed by #14847

Comments

@mkumatag
Copy link
Contributor

mkumatag commented Nov 24, 2022

What happened?

=== Failed
=== FAIL: expect TestSignal (0.01s)
    expect_test.go:192: 
        	Error Trace:	expect_test.go:192
        	            				asm_ppc64x.s:899
        	Error:      	Error "unexpected exit code [-1] after running [/bin/sleep 100]" does not contain "unexpected exit code [-1] after running [/usr/bin/sleep 100]"
        	Test:       	TestSignal

What did you expect to happen?

Test should pass

How can we reproduce it (as minimally and precisely as possible)?

$ make test

Anything else we need to know?

In the test the error message comparison fails because sleep is in a different path in the machine

root@85b22abf26c3:/workspace# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@85b22abf26c3:/workspace# which sleep
/bin/sleep
root@85b22abf26c3:/workspace#

test case error check needs to be more generic to handle such situations.

Etcd version (please run commands below)

$ etcd --version
# paste output here

$ etcdctl version
# paste output here

Etcd configuration (command line flags or environment variables)

paste your configuration here

Etcd debug information (please run commands blow, feel free to obfuscate the IP address or FQDN in the output)

$ etcdctl member list -w table
# paste output here

$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here

Relevant log output

No response

@mkumatag
Copy link
Contributor Author

Introduced in #14672

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants