tests: provide an alternate fake lock for filesystems without symlink support
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 04 Oct 2024 13:26:29 -0400
changeset 51956 3b46e8e6a401
parent 51955 b8528c8bebf5
child 51963 5e2f0fec0a47
tests: provide an alternate fake lock for filesystems without symlink support
tests/test-chainsaw-update.t
--- a/tests/test-chainsaw-update.t	Fri Oct 04 12:53:02 2024 -0400
+++ b/tests/test-chainsaw-update.t	Fri Oct 04 13:26:29 2024 -0400
@@ -105,8 +105,13 @@
 operation would not break, because the hostnames registered in locks differ
 from the current hostname (happens a lot with succesive containers):
 
+#if symlink
   $ ln -s invalid.host.test/effffffc:171814 .hg/store/lock
   $ ln -s invalid.host.test/effffffc:171814 .hg/wlock
+#else
+  $ printf 'invalid.host.test/effffffc:171814' > .hg/store/lock
+  $ printf 'invalid.host.test/effffffc:171814' > .hg/wlock
+#endif
   $ hg debuglock
   lock:  (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re)
   wlock: (.*?), process 171814, host invalid.host.test/effffffc \((\d+)s\) (re)