You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In 3.1 tag a new wrapper script tdtest was introduced which is supposed to be capable of taking pytest args from command line and internally it passes to tox, but this is broken. It passes all args as 1 string. So for example if you pass the test folder along with --junit-xml they are taken as 1 string.
To Reproduce
Run the following commands with 3.1 tag.
sudo ./tdtest tests/host --junit-xml=host.xml
Result: its looking for a folder with the name tests/host --junit-xml=host.xml
Result: It doesn't take tests/host as the folder to run the tests and instead run all 52 tests and create random folder with the name test_host.xml tests
Describe the bug
In 3.1 tag a new wrapper script
tdtest
was introduced which is supposed to be capable of taking pytest args from command line and internally it passes to tox, but this is broken. It passes all args as 1 string. So for example if you pass the test folder along with--junit-xml
they are taken as 1 string.To Reproduce
Run the following commands with 3.1 tag.
sudo ./tdtest tests/host --junit-xml=host.xml
Result: its looking for a folder with the name
tests/host --junit-xml=host.xml
sudo ./tdtest --junitxml=test_host.xml tests/host
Result: It doesn't take
tests/host
as the folder to run the tests and instead run all 52 tests and create random folder with the nametest_host.xml tests
Expected behavior
I debugged the issue and the fix is in the
tdtest
wrapper script where thepytest
args are wrapped in double quotes, removing this resolves the issue.After the above fix things work fine:
System report
Please run the
system-report.sh
script (located in the root directory of this repo) on your host system and copy the output below.The text was updated successfully, but these errors were encountered: