-
Notifications
You must be signed in to change notification settings - Fork 12
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
Generate and load test-config when in test-mode #569
Generate and load test-config when in test-mode #569
Conversation
ad98f05
to
bcabc29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I second Mattias' comments and I'd also like to understand why the config is named test-config
rather than safe-config
, as described in #561. Please add motivation for this discrepancy.
Since we above (#569 (comment)) decided that it should only be generated if test-mode, i think test-config.cfg is better. Tell what it is, why it is there etc. But there may also be other uses, in that case we can rename it then. Since it is only used in test-mode today. Didn't we use this for provision of config in our previous life @troglobit ? |
Also: |
9c00f26
to
f453d27
Compare
Added reference :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only minor cosmetic stuff, the name issue is still there @troglobit should it be safe-config?
f453d27
to
0e628ac
Compare
OK, fair point. We can add a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this as long as Mattias' last comments are addressed.
0e628ac
to
93c9391
Compare
Currently, it's not possible to run infix tests from an external project (based on infix) due to an incompatibility between the configuration used in the tests (the default configuration within the image generated by the external project) and the infix base configuration expected by the test cases. Therefore, a simple configuration specifically for testing purposes needs to be generated within an image. This test-config should always be generated but only loaded when the device is in test mode. Part of issue kernelkit#568
- removed unused parameters in functions factory() and failure() - renamed the functions
93c9391
to
595d4e7
Compare
Currently, it's not possible to run infix tests from an external project (based on infix) due to an incompatibility between the
configuration used in the tests (the default configuration within the image generated by the external project) and the infix
base configuration expected by the test cases.
Therefore, a simple configuration specifically for testing purposes needs to be generated within an image.
This test-config should only be generated and loaded when the device is in test mode.