comparison tests/test-command-template.t @ 20008:e54a078153f7

tests: skip tests that require not having root (issue4089) This adds a new root hghave to test against. Almost all of these are a subset of unix-permissions, but that is also used for checking exec bit handling.
author Matt Mackall <mpm@selenic.com>
date Thu, 14 Nov 2013 18:07:43 -0600
parents c38c3fdc8b93
children 6d4fda48b4e3
comparison
equal deleted inserted replaced
20007:23edc6673f0d 20008:e54a078153f7
445 </log> 445 </log>
446 446
447 447
448 Error if style not readable: 448 Error if style not readable:
449 449
450 #if unix-permissions 450 #if unix-permissions no-root
451 $ touch q 451 $ touch q
452 $ chmod 0 q 452 $ chmod 0 q
453 $ hg log --style ./q 453 $ hg log --style ./q
454 abort: Permission denied: ./q 454 abort: Permission denied: ./q
455 [255] 455 [255]
477 [255] 477 [255]
478 478
479 Error if include fails: 479 Error if include fails:
480 480
481 $ echo 'changeset = q' >> t 481 $ echo 'changeset = q' >> t
482 #if unix-permissions 482 #if unix-permissions no-root
483 $ hg log --style ./t 483 $ hg log --style ./t
484 abort: template file ./q: Permission denied 484 abort: template file ./q: Permission denied
485 [255] 485 [255]
486 $ rm q 486 $ rm q
487 #endif 487 #endif