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

Concatenation issue in tests/common/helpers/pfc_gen_t2.py #11035

Open
harsgoll opened this issue Dec 16, 2023 · 1 comment
Open

Concatenation issue in tests/common/helpers/pfc_gen_t2.py #11035

harsgoll opened this issue Dec 16, 2023 · 1 comment

Comments

@harsgoll
Copy link
Contributor

harsgoll commented Dec 16, 2023

While running PFCWD test cases, encountered concatenation issue on sonic fanout.

root@xx37-root-fanout:/tmp# sudo nice --20 python pfc_gen_t2.py -p 16 -t 65535 -s 8 -n 1000000 -i Ethernet152 -r 1.76.0.62
Traceback (most recent call last):
File "/tmp/pfc_gen_t2.py", line 340, in
main()
File "/tmp/pfc_gen_t2.py", line 264, in main
fo_logger.debug(fo_str + ' sendmmsg got errno ' + str(errno) + ' for socket ' + s.getsockname())
TypeError: can only concatenate str (not "tuple") to str

We converted s.getsockname() into str and able to proceed further.

Cc: sanjair-git, @rraghav-cisco

@harsgoll
Copy link
Contributor Author

Raised PR #11037 to fix this

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

No branches or pull requests

1 participant