tests/test-check-rust-format.t
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Feb 2022 13:23:21 -0700
changeset 48953 2336e79a119c
parent 48374 090346b095fb
permissions -rw-r--r--
tests: remove Python 3 conditionalizing from variables Differential Revision: https://phab.mercurial-scm.org/D12240

#require rustfmt test-repo

  $ . "$TESTDIR/helpers-testrepo.sh"

  $ cd "$TESTDIR"/..

Warning: Keep this in sync with hghave.py
  $ RUSTFMT=$(rustup which --toolchain nightly-2021-11-02 rustfmt)
  $ for f in `testrepohg files 'glob:**/*.rs'` ; do
  >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
  > done