Skip to content

Commit

Permalink
Fix strip-test-base script to handle Windows paths correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Dec 16, 2022
1 parent 013d53c commit 8097614
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testing/Scripts/strip-test-base
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@

dir=$(dirname "$0")
testbase=$(cd "$dir/.." && pwd)

if [ "$(uname -s | cut -c 1-5)" == "MINGW" ]; then
testbase=$(echo "${testbase}" | sed 's#/\([a-zA-Z]\)/\(.*\)#\u\1:/\2#')
fi

sed "s#${testbase}#<...>#g"

0 comments on commit 8097614

Please sign in to comment.