-
Notifications
You must be signed in to change notification settings - Fork 950
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
test: using config file to run daemon test #2950
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2950 +/- ##
==========================================
- Coverage 68.19% 63.75% -4.45%
==========================================
Files 291 291
Lines 18351 18351
==========================================
- Hits 12514 11699 -815
- Misses 4382 5234 +852
+ Partials 1455 1418 -37
|
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.
LGTM
@zhuangqh I trigger the CI to rerun it. |
ping @zhuangqh |
*background*: some env may depend on some specific config options. Signed-off-by: zhuangqh <zhuangqhc@gmail.com>
ping @zhuangqh any update? |
|
@@ -251,7 +251,9 @@ func (suite *PouchLogsSuite) TestSetLogPathInDaemon(c *check.C) { | |||
logRootDir := "/tmp/TestSetLogsPathInDaemon" | |||
defer os.RemoveAll(logRootDir) | |||
|
|||
dcfg, err := StartDefaultDaemon("--log-opt", fmt.Sprintf("root-dir=%s", logRootDir)) | |||
dcfg, err := StartDefaultDaemon(map[string]interface{}{ | |||
"--log-opt": fmt.Sprintf("root-dir=%s", logRootDir), |
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 need use args instead of config field? Or use log-opt
instead of --log-opt
? I'm not sure 😢
Thank you for your contribution! because you don't response for a long time, I will close this PR and reopen #3036. |
background: some env may depend on some
specific config options.
Signed-off-by: zhuangqh zhuangqhc@gmail.com
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews