Merge pull request #2785 from ehuss/ensure-test-built
Don't rebuild books in tests
This commit is contained in:
commit
b09c588ca9
1 changed files with 6 additions and 0 deletions
|
|
@ -231,6 +231,12 @@ impl BookTest {
|
|||
};
|
||||
f(&mut cmd);
|
||||
cmd.run();
|
||||
// Ensure that `built` gets set if a build command is used so that all
|
||||
// the `check` methods do not overwrite the contents of what was just
|
||||
// built.
|
||||
if cmd.args.first().map(String::as_str) == Some("build") {
|
||||
self.built = true
|
||||
}
|
||||
self
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue