tests: update for renamed fs
module in run_make_support
This commit is contained in:
parent
e1569fde3e
commit
636be91cc0
80 changed files with 225 additions and 239 deletions
|
@ -1,7 +1,7 @@
|
|||
use run_make_support::fs_wrapper::copy;
|
||||
use run_make_support::fs as rfs;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use run_make_support::{assert_recursive_eq, copy_dir_all, rustdoc};
|
||||
use run_make_support::{assert_recursive_eq, rustdoc};
|
||||
|
||||
#[derive(PartialEq)]
|
||||
enum JsonOutput {
|
||||
|
@ -26,7 +26,7 @@ fn main() {
|
|||
generate_docs(&out_dir, JsonOutput::No);
|
||||
|
||||
// Copy first output for to check if it's exactly same after second compilation.
|
||||
copy_dir_all(&out_dir, &tmp_out_dir);
|
||||
rfs::copy_dir_all(&out_dir, &tmp_out_dir);
|
||||
|
||||
// Generate html docs once again on same output.
|
||||
generate_docs(&out_dir, JsonOutput::No);
|
||||
|
@ -38,7 +38,7 @@ fn main() {
|
|||
assert!(out_dir.join("foobar.json").is_file());
|
||||
|
||||
// Copy first json output to check if it's exactly same after second compilation.
|
||||
copy(out_dir.join("foobar.json"), tmp_out_dir.join("foobar.json"));
|
||||
rfs::copy(out_dir.join("foobar.json"), tmp_out_dir.join("foobar.json"));
|
||||
|
||||
// Generate json doc on the same output.
|
||||
generate_docs(&out_dir, JsonOutput::Yes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue