changeset 51948:ed90f4a1bb2c

tests: conditionalize `chmod` usage in `test-upgrade-repo.t` While the command itself doesn't error out on Windows, it also doesn't make the filesystem readonly. Therefore the repo gets altered to drop dirstate-v2, and puts it out of sync with that happens on Linux.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 03 Oct 2024 19:49:05 -0400
parents 9cfc95e901ec
children a8e1ff9ac257
files tests/test-upgrade-repo.t
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-upgrade-repo.t	Wed Oct 02 18:30:12 2024 -0400
+++ b/tests/test-upgrade-repo.t	Thu Oct 03 19:49:05 2024 -0400
@@ -2082,6 +2082,8 @@
   tracked-hint:        no
   share-safe:         yes
 
+#if unix-permissions
+
 Attempting Auto-upgrade on a read-only repository
 -------------------------------------------------
 
@@ -2095,6 +2097,8 @@
 
   $ chmod -R u+w auto-upgrade
 
+#endif
+
 Attempting Auto-upgrade on a locked repository
 ----------------------------------------------