Skip to content

Commit d54c31a

Browse files
committed
run style.rs from ci/style.sh instead of ci/run.sh
1 parent 955af3e commit d54c31a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ci/style.sh

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if [ -n "${CI:-}" ]; then
99
check="--check"
1010
fi
1111

12+
cargo test --manifest-path libc-test/Cargo.toml --test style
13+
1214
command -v rustfmt
1315
rustfmt -V
1416

libc-test/test/style.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ macro_rules! t {
4747
}
4848

4949
#[test]
50-
fn main() {
50+
fn check_style() {
51+
if env::var("LIBC_CI").is_ok() {
52+
// we already run this in the style.sh script
53+
return;
54+
}
55+
5156
let arg = env::args().skip(1).next().unwrap_or("../src".to_string());
5257

5358
let mut errors = Errors { errs: false };

0 commit comments

Comments
 (0)