Mercurial > hg
comparison tests/hghave.py @ 45553:952f9d37002c
rust-tests: add test to check if `Cargo.lock` is up-to-date
An out-of-date `Cargo.lock` is the source of rebase conflicts, prevents a
reproductible build, introduces desync between the series that introduces a
change in dependencies and the one that eventually commits the `Cargo.lock`,
and is just a general annoyance.
This commit demonstrates that the test works, the next one fixes the
currently out-of-date `Cargo.lock`.
Differential Revision: https://phab.mercurial-scm.org/D9079
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 24 Sep 2020 16:30:00 +0200 |
parents | 357d8415aa27 |
children | 89a2afe31e82 |
comparison
equal
deleted
inserted
replaced
45552:10284ce3d5ed | 45553:952f9d37002c |
---|---|
1064 return matchoutput( | 1064 return matchoutput( |
1065 '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt' | 1065 '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt' |
1066 ) | 1066 ) |
1067 | 1067 |
1068 | 1068 |
1069 @check("cargo", "cargo tool") | |
1070 def has_cargo(): | |
1071 return matchoutput('`rustup which cargo` --version', b'cargo') | |
1072 | |
1073 | |
1069 @check("lzma", "python lzma module") | 1074 @check("lzma", "python lzma module") |
1070 def has_lzma(): | 1075 def has_lzma(): |
1071 try: | 1076 try: |
1072 import _lzma | 1077 import _lzma |
1073 | 1078 |