Use --cfg when running doctests
Previously passed --cfg was used only when collecting doctests.
This commit is contained in:
parent
9e63cecb10
commit
eb25721063
4 changed files with 29 additions and 7 deletions
|
@ -261,7 +261,7 @@ pub fn main_args(args: &[String]) -> isize {
|
|||
|
||||
match (should_test, markdown_input) {
|
||||
(true, true) => {
|
||||
return markdown::test(input, libs, externs, test_args)
|
||||
return markdown::test(input, cfgs, libs, externs, test_args)
|
||||
}
|
||||
(true, false) => {
|
||||
return test::run(input, cfgs, libs, externs, test_args, crate_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue