Skip to content

Commit 6e7e6a2

Browse files
committed
PYTHON-1774 Fix path to XML test output
1 parent 6de82d2 commit 6e7e6a2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.evergreen/run-tests.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ fi
7676
# Don't download unittest-xml-reporting from pypi, which often fails.
7777
HAVE_XMLRUNNER=$($PYTHON -c "import pkgutil, sys; sys.stdout.write('1' if pkgutil.find_loader('xmlrunner') else '0')")
7878
if [ $HAVE_XMLRUNNER = "1" ]; then
79-
OUTPUT="--xunit-output=xunit-results"
79+
# The xunit output dir must be a Python style absolute path.
80+
XUNIT_DIR="$(pwd)/xunit-results"
81+
if [ "Windows_NT" = "$OS" ]; then # Magic variable in cygwin
82+
XUNIT_DIR=$(cygpath -m $XUNIT_DIR)
83+
fi
84+
OUTPUT="--xunit-output=${XUNIT_DIR}"
8085
else
8186
OUTPUT=""
8287
fi

0 commit comments

Comments
 (0)