Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit a662ef7

Browse files
committed
test: Implement mingw abspath_of_dir
needed to translate /c/ -> c: for comparison. Signed-off-by: Michael Geddes <[email protected]>
1 parent 4a83680 commit a662ef7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/test-lib.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,11 @@ case $(uname -s) in
858858
*) builtin test "$@";;
859859
esac
860860
}
861+
862+
abspath_of_dir () {
863+
(cd "$1" ; pwd -P | sed 's+^/\([a-z]\)\/+\1:/+')
864+
}
865+
861866
# no POSIX permissions
862867
# backslashes in pathspec are converted to '/'
863868
# exec does not inherit the PID

0 commit comments

Comments
 (0)