Skip to content

Commit c691484

Browse files
committed
Fixes the issue with POSIX path translation in MinGW bash
1 parent 173db13 commit c691484

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

examples/lib/testrunner.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export BASEDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
55
. $BASEDIR/setup.sh
66
export groupName=`randomName testrg`
77
export location="westus"
8+
export MSYS_NO_PATHCONV=1
89

910
login
1011

@@ -15,4 +16,6 @@ for d in $( ls $BASEDIR/.. --ignore=lib ); do
1516
cleanup
1617
echo "success: $f"
1718
done
18-
done
19+
done
20+
21+
export MSYS_NO_PATHCONV=

tools/CLU/BuildAndInstallClu.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ copy /Y %root%\drop\clurun\win7-x64\msclu.cfg %root%\drop\clurun\ubuntu.14.04-x6
5656
copy /Y %azuresh% %root%\drop\clurun\ubuntu.14.04-x64
5757

5858
REM, windows version also needs it for bash based testing
59-
copy /Y %azuresh% %root%\drop\clurun\win7-x64\azure
59+
copy /Y %~dp0\azure.win.sh %root%\drop\clurun\win7-x64\azure

tools/CLU/azure.win.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
if [ -z ${CmdletSessionID} ]
3+
then
4+
export CmdletSessionID=$PPID
5+
fi
6+
SCRIPTPATH=$(dirname "$0")
7+
WSCRIPTPATH=$({ cd $SCRIPTPATH && pwd -W; } | sed 's|/|\\|g')
8+
$WSCRIPTPATH/clurun -s azure -r $WSCRIPTPATH/azure.lx "$@"

0 commit comments

Comments
 (0)