Mercurial > hg
annotate tests/test-check-rust-format.t @ 51448:89cd0dd41e4d stable
crecord: drop calls to `curses.endwin()`
We got a bug report where `curses.endwin()` failed with `_curses.error: endwin()
returned ERR`. Looking at e306d552dfb12, it seems like we should be able to just
remove these calls.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 29 Feb 2024 14:13:21 -0800 |
parents | 090346b095fb |
children | c8188b10cf43 |
rev | line source |
---|---|
43819
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
1 #require rustfmt test-repo |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
2 |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
3 $ . "$TESTDIR/helpers-testrepo.sh" |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
4 |
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
5 $ cd "$TESTDIR"/.. |
48742
090346b095fb
hghave: update rustfmt criterion
Raphaël Gomès <rgomes@octobus.net>
parents:
48297
diff
changeset
|
6 |
090346b095fb
hghave: update rustfmt criterion
Raphaël Gomès <rgomes@octobus.net>
parents:
48297
diff
changeset
|
7 Warning: Keep this in sync with hghave.py |
48297
9ebc10ad4a04
rust-format: update rustfmt version
Raphaël Gomès <rgomes@octobus.net>
parents:
45987
diff
changeset
|
8 $ RUSTFMT=$(rustup which --toolchain nightly-2021-11-02 rustfmt) |
43819
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
9 $ for f in `testrepohg files 'glob:**/*.rs'` ; do |
44732
f44a7d8660ea
test-check-rust-format: specify --edition=2018
Yuya Nishihara <yuya@tcha.org>
parents:
43819
diff
changeset
|
10 > $RUSTFMT --check --edition=2018 --unstable-features --color=never $f |
43819
e8a3bbffdc7d
tests: add test for Rust formatting
Gregory Szorc <gregory.szorc@gmail.com>
parents:
diff
changeset
|
11 > done |