summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/runtest.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/runtest.sh b/tests/runtest.sh
index 8148f25724..fdc067eb2d 100755
--- a/tests/runtest.sh
+++ b/tests/runtest.sh
@@ -123,7 +123,12 @@ case $OSName in
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"