-
Notifications
You must be signed in to change notification settings - Fork 29
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
moduletest: add --config option #811
base: main
Are you sure you want to change the base?
moduletest: add --config option #811
Conversation
This allows testing with varous osconfig.json and will remove need for file copy into /etc/ Signed-off-by: Krzysztof Kanas <[email protected]>
@@ -6,7 +6,7 @@ | |||
#include <math.h> | |||
|
|||
#define DEFAULT_BIN_PATH "/usr/lib/osconfig" | |||
#define OSCONFIG_CONFIG_FILE "/etc/osconfig/osconfig.json" | |||
#define DEFAULT_OSCONFIG_CONFIG_FILE "/etc/osconfig/osconfig.json" |
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.
Why changing this?
@@ -56,7 +51,7 @@ jobs: | |||
|
|||
echo -n "testing $name ... " | |||
|
|||
if output=$(sudo ./moduletest $recipe --bin ../bin); then | |||
if output=$(sudo ./moduletest $recipe --bin ../bin --config ../../src/adapters/pnp/daemon/osconfig.json ); then |
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.
This would really help me as a reviewer. |
This allows testing with varous osconfig.json and will remove need for file copy into /etc/
Description
Describe your changes in as much detail as possible. Provide a link/reference to the issue solved with this request if any.
Checklist
main
branch prior to this PR submission.main
branch.