view tests/test-check-rust-format.t @ 43948:9595b6a9f0d5

tests: show that fileset patterns don't work with `fix` when not in repo root Differential Revision: https://phab.mercurial-scm.org/D7569
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 06 Dec 2019 20:29:02 -0500
parents e8a3bbffdc7d
children f44a7d8660ea
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 --unstable-features --color=never $f
  > done