chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec70192
)
Test suite: Make t-policy more robust, and work in installed-package mode
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 12:21:35 +0000
(13:21 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 13:14:10 +0000
(14:14 +0100)
tests/lib
patch
|
blob
|
history
diff --git
a/tests/lib
b/tests/lib
index ef2437b05b307ecf1a7099b528376b0a91172764..30fce38e9d4f06018326c6a0eb9193f5fe669385 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-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 () {