Patchwork D11740: tests: allow the true command to be provided by coreutils

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2021, 1:18 p.m.
Message ID <differential-rev-PHID-DREV-5bscgb3hxeleev4ibtev-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50065/
State Superseded
Headers show

Comments

phabricator - Nov. 9, 2021, 1:18 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The `true` command is sometimes provided as a symbolic link to the `coreutils`
  single binary. This is the case on NixOS, on which the test was failing because
  the symbolic link fully resolves to the latter name, equally valid but not
  previously accepted by the test's golden output.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

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

AFFECTED FILES
  tests/test-run-tests.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -23,7 +23,7 @@ 
 #if symlink
   $ ln -s `which true` hg
   $ "$PYTHON" $TESTDIR/run-tests.py --with-hg=./hg
-  warning: --with-hg should specify an hg script, not: true
+  ^warning: --with-hg should specify an hg script, not: (true|coreutils)$ (re)
   running 0 tests using 0 parallel processes 
   
   # Ran 0 tests, 0 skipped, 0 failed.