view tests/test-check-rust-format.t @ 45955:064449f9fdc2

run-tests: use a context manager when looking for available ports Differential Revision: https://phab.mercurial-scm.org/D9441 Differential Revision: https://phab.mercurial-scm.org/D9452
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 29 Nov 2020 19:17:35 +0530
parents f44a7d8660ea
children d42809b6b10f
line wrap: on
line source

#require rustfmt test-repo

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

  $ cd "$TESTDIR"/..
  $ RUSTFMT=$(rustup which --toolchain nightly rustfmt)
  $ for f in `testrepohg files 'glob:**/*.rs'` ; do
  >   $RUSTFMT --check --edition=2018 --unstable-features --color=never $f
  > done