From 4c5883a3d448b2c0fc5b5885b0e9196f11f39103 Mon Sep 17 00:00:00 2001 From: Hyeongseok Oh Date: Wed, 30 Aug 2017 17:40:23 +0900 Subject: Use --xunitOutputPath option in runtest.sh Fix to be used --xunitOutputPath in runtest.sh This option was useless because xunitOutputPath was always set as default --- tests/runtest.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/runtest.sh') 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" -- cgit v1.2.3