[PATCH 4 of 7] tests: remove protected file forcibly for portability
Augie Fackler
raf at durin42.com
Fri Feb 5 21:36:16 UTC 2016
On Fri, Feb 05, 2016 at 10:53:37PM +0900, FUJIWARA Katsunori wrote:
> # 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
Patches 1-4 are queued, waiting on the rest in the hopes I'll get a
check-code rule.
>
> 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:
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list