[PATCH 4 of 7] tests: remove protected file forcibly for portability
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Fri Feb 5 13:53:37 UTC 2016
# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1454679125 -32400
# Fri Feb 05 22:32:05 2016 +0900
# Node ID 3b10fa10cdd14d4e20a32de71531573be6a5f6fc
# Parent dd15544db8921d6fb73a0b5b5204f352476a2fa6
tests: remove protected file forcibly for portability
Before this patch, test-command-template.t is timed out on Solaris,
because "rm" on permission denied file implies prompting "override
protection 0 (yes/no)?" and blocks execution of test script.
diff --git a/tests/test-command-template.t b/tests/test-command-template.t
--- a/tests/test-command-template.t
+++ b/tests/test-command-template.t
@@ -1018,7 +1018,7 @@ Error if include fails:
$ hg log --style ./t
abort: template file ./q: Permission denied
[255]
- $ rm q
+ $ rm -f q
#endif
Include works:
More information about the Mercurial-devel
mailing list