Skip to content

Commit

Permalink
Ignore .css files in the diff
Browse files Browse the repository at this point in the history
These are always static and never autogenerated, so the diffs aren't
useful.
  • Loading branch information
jyn514 committed Dec 12, 2020
1 parent 804b72a commit f9b97a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,8 @@ impl<'test> TestCx<'test> {
})
};
let mut diff = Command::new("diff");
diff.args(&["-u", "-r"]).args(&[&compare_dir, out_dir]);
// diff recursively, showing context, and excluding .css files
diff.args(&["-u", "-r", "-x", "*.css"]).args(&[&compare_dir, out_dir]);

let output = if let Some(pager) = pager {
let diff_pid = diff.stdout(Stdio::piped()).spawn().expect("failed to run `diff`");
Expand Down

0 comments on commit f9b97a8

Please sign in to comment.