tests: conditionalize `chmod` usage in `test-upgrade-repo.t`
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 03 Oct 2024 19:49:05 -0400
changeset 51948 ed90f4a1bb2c
parent 51947 9cfc95e901ec
child 51949 a8e1ff9ac257
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.
tests/test-upgrade-repo.t
--- 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
 ----------------------------------------------