diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-23 13:21:35 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-23 14:14:10 +0100 |
commit | 62eaf578fb1af468b02c455db65bf93b3422ba49 (patch) | |
tree | b63cd3379bf2d19be088895f51b4d38b5405963e /tests/lib | |
parent | ec70192b97f4c71603eddad5379d7cdcb7587248 (diff) |
Test suite: Make t-policy more robust, and work in installed-package mode
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -518,8 +518,12 @@ t-policy-admin () { t-policy () { local policyhook=$1 - ln -sf ${DGIT_INFRA_PFX}$policyhook \ - $drs_dispatch/policy-hook + policyhook=${DGIT_INFRA_PFX}$policyhook + case $policyhook in + */*) ;; + *) policyhook=`type -P $policyhook` ;; + esac + ln -sf "$policyhook" $drs_dispatch/policy-hook } t-debpolicy () { |