Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2019-12-09 22:19:33 +0300
committerBryan Drewery <bryan@shatow.net>2019-12-09 22:20:58 +0300
commitad8623e34bb641664f8748092d31c0473f217e4f (patch)
treeb495dab0ea3dd8ad1283c86446c5ac87ad848821 /test
parent2dd8df705356267b07ffb438b5b91e0a58037693 (diff)
relpath: Adopt dteske's API
Diffstat (limited to 'test')
-rw-r--r--test/relpath.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/relpath.sh b/test/relpath.sh
index 3434db59..362c9891 100644
--- a/test/relpath.sh
+++ b/test/relpath.sh
@@ -29,7 +29,11 @@ while [ $# -gt 0 ]; do
actual_reldir=$(relpath "${dir1}" "${dir2}")
- assert "${expected_reldir}" "${actual_reldir}" "dir1: ${dir1} dir2: ${dir2}"
+ assert "${expected_reldir}" "${actual_reldir}" "1. dir1: ${dir1} dir2: ${dir2}"
+
+ actual_reldir=
+ relpath "${dir1}" "${dir2}" actual_reldir
+ assert "${expected_reldir}" "${actual_reldir}" "2. dir1: ${dir1} dir2: ${dir2}"
set -- ${saved}
done