tests/test-check-cargo-lock.t
author Yuya Nishihara <yuya@tcha.org>
Tue, 01 Dec 2020 19:23:23 +0900
changeset 46044 9ee791f3278f
parent 45656 ba0d93a5f06f
permissions -rw-r--r--
scmutil: extract function that builds revset expr to select bookmark branch This is needed to process "log -B" option properly. "log" options have to be translated to a revset expression, not to an evaluated set.

#require cargo test-repo
  $ . "$TESTDIR/helpers-testrepo.sh"
  $ cd "$TESTDIR"/../rust

Check if Cargo.lock is up-to-date. Will fail with a 101 error code if not.

  $ cargo check --locked --all --quiet

However most CIs will run `cargo build` or similar before running the tests, so we need to check if it was modified

  $ testrepohg diff Cargo.lock