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.
--- 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
----------------------------------------------