-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Couldn't make executionWrapper to work #361
Comments
that line is not a precise error text. It doesn't mean that sudo won't be used. Please attach logs in the way described by support page |
btw, wouldn't be |
@matepek , thank you so much for your response. I'll do my best to prepare the logs. And it goes without saying, THANK YOU so much for this amazing extension. I really hope I will make it work for my case. 🙏 |
@matepek, I am not sure I fully understand your advise here. Do you mean to |
I meant SUID. A way it could be that
This way, you just have to do 1 This ulimit might interesting too. |
Thank you for the advise. Regarding Regarding the idea of |
Here is the log cpp_mate_log.txt. |
Hi @matepek, I've tried your idea with However, I have encountered another issue. Some tests in our test-suite are running on HW, and as such cannot run simultaneously. Following the guidelines of the documentation I added the following settings to my "testMate.cpp.test.parallelExecutionLimit": 1,
"testMate.cpp.test.parallelExecutionOfExecutableLimit": 1,
"testMate.cpp.test.runtimeLimit": 0, When I run the tests from the command line manually, the tests are passing without an issue. Thank you, |
Happy to hear that the main problem is solved. Regarding to the parallelism. One possible explanation could be that your tests depending on each other in an ordered way. In that case please open a new issue with log attached and I will look into it. (or you can try to read it too, not too complicated) |
Checklist
I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
Thanks.
Describe the bug
I test the code that is supposed to run under the root privileges. Moreover, I do use remote to debug, but this is not the failure I see in the ticket #201 that is mentioned above. The problem is that the
executionWrapper
doesn't work for me. The configuration is as follows:My
gtest
executable was added to NOPASSWD list in thesudoers
files for my account. I've tested the command by manually running it from the command line and it worked. It ran without asking for the password. Moreover, the Test-Explorer shows the list of the tests correctly. But when I request to run a test, in the output window I see that it shows that sudo wasn't called and even other argument specified about (i.e. "-d", "5") do not appear:As you can see neiter
sudo
nor extra arguments appear there. I also tried to replace in the settings the line"args": [ "${argsFlat}", "-d", "5" ]
with"args": [ "${cmd}", "${argsFlat}", "-d", "5" ]
, which made it only worse. In the latter configuration even Test Explorer shows nothing.To Reproduce
To reproduce the failure I believe you need the following:
Desktop
Regression bug?
I tried even with C++ TestMate Legacy. There results even worse, I have no idea how to get the logs of the failure.
Log (optional but recommended)
I have the only log that I mentioned above.
Thank you,
Arseniy
The text was updated successfully, but these errors were encountered: