Skip to content

Commit f9b97a8

Browse files
committed
Ignore .css files in the diff
These are always static and never autogenerated, so the diffs aren't useful.
1 parent 804b72a commit f9b97a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/compiletest/src/runtest.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,8 @@ impl<'test> TestCx<'test> {
24372437
})
24382438
};
24392439
let mut diff = Command::new("diff");
2440-
diff.args(&["-u", "-r"]).args(&[&compare_dir, out_dir]);
2440+
// diff recursively, showing context, and excluding .css files
2441+
diff.args(&["-u", "-r", "-x", "*.css"]).args(&[&compare_dir, out_dir]);
24412442

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

0 commit comments

Comments
 (0)