-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
"pio test -c someconfig.ini" ignores "-c" #3583
Comments
Anything I can do to help with this? If you point me to the location of the Python scripts, I could have a look perhaps. (sorry, first time for me, looking into pio itself, and I can't seem to figure out where the scripts live, on MacOS ...) UPDATE: Ok, found the scripts - I think the problem is in this piece of code. The test cmd is using the run cmd, without run knowing about the overriding |
Thanks for the report! Please re-test with |
Many thanks, will do - could you please tell me how to revert back to non-dev releases once this goes into mainline? I got bitten by this in the past, would prefer to avoid ending up in that corner of the room again ... |
https://docs.platformio.org/en/latest/core/installation.html#development-version See
|
Thank you. And I can confirm that it works. The approach I'm trying is a large collection of .ini files in a |
It sounds very interesting. Is this project open sourced? I just want to take a look at your use case. |
The main platformio.ini can be something like:
One minor issue remains: AFAIK, I can't add to the |
Could you explain in details? |
In If I now want to build with asserts disabled, I need to add The same issue can also come up in the Yet another example is here, using I think the underlying issue is really that these config settings are more and more coming from different places and sharing more and more pieces. Which is great, because it helps avoid duplication. But it gets tricky. Maybe there's a better way to do this. I haven't used |
You can also use
|
Ah, that's interesting. Goal here is: have a configs/blah.ini ready to use, but without the site-specific info, i.e. serial port choices, and the debug enable/disable I mentioned. There may be a few more choices, but not that many. Also, note that the config file as is is intended to work out of the box (i.e. no repo changes):
And then
I haven't tried this. In short: top-level ini pulls in everything, then extends some flags, and specifies serial ports. Thanks for the tip - I'll try a few approaches. |
Exactly, see |
Great, thx. Yes, Thanks Ivan. Fantastic job by you and your team. |
Thank you too for the reports and ideas! Happy coding with PlatformIO! ❤️ |
Just to finish off (I can continue the forum or start a new issue, if needed) ... The new 4.4 setup is indeed very flexible, but including all boards and using only one is slightly inconvenient: 1) a very long list of "IGNORED" lines at the end of a run (even more at the end of a test), and 2) those lists do not appear to be sorted in any way, I suspect that it's the directory order of the A completely different approach would be to load the configs only when mentioned, i.e. have PIO know about the As before, what I'm trying to solve is a way to have tons of configs (a growing / contributed set of files, presumably), while keeping the contents of |
We decided to name next release as 5.0 because there are some changes which remove fucntionality that was in PIO Core 4.0. Could open a feature request and we will implement this in 5.0. I also don't like this long list with envs when user builds only 1 env. Thanks! |
If you’ve found a bug, please provide an information below.
Configuration
Operating system: macOS
PlatformIO Version: 4.3.4
Description of problem
pio test -c configs/native.ini
gives an error msg.With
pio run -c configs/native.ini
, it works as expected.Actual Results
The
platformio.ini
file is used, which does not contain a "native" env:The content of
platformio.ini
:Update: see also https://community.platformio.org/t/pio-test-with-c-option/14731
The text was updated successfully, but these errors were encountered: