Patchwork D9170: tests: only diff the `Cargo.lock` in `test-check-cargo-lock.t`

login
register
mail settings
Submitter phabricator
Date Oct. 8, 2020, 8:08 a.m.
Message ID <differential-rev-PHID-DREV-qe5r77q566iaz7kr62cu-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47405/
State Superseded
Headers show

Comments

phabricator - Oct. 8, 2020, 8:08 a.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  While not perfect (you could be running tests while developing with a justified
  modification to `Cargo.lock`), that use-case is small enough that I don't think
  it's really going to be an issue.
  
  This stops the test from failing for unrelated changes when running it locally.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9170

AFFECTED FILES
  tests/test-check-cargo-lock.t

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-check-cargo-lock.t b/tests/test-check-cargo-lock.t
--- a/tests/test-check-cargo-lock.t
+++ b/tests/test-check-cargo-lock.t
@@ -8,4 +8,4 @@ 
 
 However most CIs will run `cargo build` or similar before running the tests, so we need to check if it was modified
 
-  $ testrepohg diff
+  $ testrepohg diff Cargo.lock