diff tests/test-check-format.t @ 51915:ceaf92d6d380

tests: always access the mercurial repo through `helpers-testrepo.sh` In some contexts the mercurial repo needs to be accessed through system hg. That's what `helpers-testrepo.sh` enforces, but some tests incorrectly use the mercurial repo without going through that script. This patch fixes those tests.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Wed, 02 Oct 2024 14:51:56 +0100
parents 41d43d12c2c4
children
line wrap: on
line diff
--- a/tests/test-check-format.t	Wed Oct 02 14:49:07 2024 +0100
+++ b/tests/test-check-format.t	Wed Oct 02 14:51:56 2024 +0100
@@ -6,6 +6,8 @@
   $ export USERPROFILE
 #endif
 
+  $ . "$TESTDIR/helpers-testrepo.sh"
+
   $ cd $RUNTESTDIR/..
-  $ black --check --diff `hg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`
+  $ black --check --diff `testrepohg files 'set:(**.py + grep("^#!.*python")) - mercurial/thirdparty/**'`