diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -198,6 +198,18 @@ t-has-ancestor () { fi } +t-has-parent () { + # t-has-parent CHILD PARENT + local child=$1 + local parent=$2 + local parents=$(git show --pretty=format:' %P ' "$child") + parent=$(git rev-parse "$parent~0") + case "$parents" in + *" $parent "*) ;; + *) fail "child $child lacks parent $parent" ;; + esac +} + t-prep-newpackage () { t-select-package $1 v=$2 |