view tests/test-check-rust-format.t @ 48410:0b2469bf1227

python2-compat: fix extensions' tests on python2 They are minor output different to be taken in account. Differential Revision: https://phab.mercurial-scm.org/D11861
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 04 Dec 2021 03:51:33 +0100
parents 9ebc10ad4a04
children 090346b095fb
line wrap: on
line source

#require rustfmt test-repo

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

  $ cd "$TESTDIR"/..
  $ 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