Fix to be used --xunitOutputPath in runtest.sh
This option was useless because xunitOutputPath was always set as default
esac
function xunit_output_begin {
- xunitOutputPath=$testRootDir/coreclrtests.xml
+ if [ -z "$xunitOutputPath" ]; then
+ xunitOutputPath=$testRootDir/coreclrtests.xml
+ fi
+ if ! [ -e $(basename "$xunitOutputPath") ]; then
+ xunitOutputPath=$testRootDir/coreclrtests.xml
+ fi
xunitTestOutputPath=${xunitOutputPath}.test
if [ -e "$xunitOutputPath" ]; then
rm -f -r "$xunitOutputPath"