diff tests/test-init.t @ 48464:5e6542143d40

test: use `hg debugrequires` instead of `cat` in some tests This give the "same" result, while taking in account that the requirement file might be in different location, like what `share-safe` is doing. Differential Revision: https://phab.mercurial-scm.org/D11895
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 08 Dec 2021 05:35:32 +0100
parents f35529784079
children 7ee07e1a25c0
line wrap: on
line diff
--- a/tests/test-init.t	Wed Dec 08 05:42:01 2021 +0100
+++ b/tests/test-init.t	Wed Dec 08 05:35:32 2021 +0100
@@ -9,7 +9,7 @@
   >    if [ -f "$name"/.hg/00changelog.i ]; then
   >    echo 00changelog.i created
   >    fi
-  >    cat "$name"/.hg/requires
+  >    hg debugrequires -R "$name"
   > }
 
 creating 'local'