From c8ab5eea6f1ea64ee0a2f4df2b98c8edbf9e0adb Mon Sep 17 00:00:00 2001 From: msdmkats Date: Thu, 11 Oct 2018 18:07:19 +0300 Subject: [PATCH] Pinned net core runtime version in netcoretest.sh. (#23) --- test/netcoretest.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/netcoretest.sh b/test/netcoretest.sh index b474b8e9..73aab19f 100644 --- a/test/netcoretest.sh +++ b/test/netcoretest.sh @@ -18,6 +18,9 @@ fi compath=/bin/${configuration}/netcoreapp2.1/ dlls="Learners/LearnersTests${compath}Microsoft.ML.Probabilistic.Learners.Tests.dll Tests${compath}Microsoft.ML.Probabilistic.Tests.dll TestPublic${compath}TestPublic.dll" +# dotnet command +dotnet='dotnet --fx-version 2.1.5' + # path to the xunit runner runner=~/.nuget/packages/xunit.runner.console/2.3.1/tools/netcoreapp2.0/xunit.console.dll @@ -34,7 +37,7 @@ echo -e "\033[44;37m=====================PARALLEL TESTS RUNNING================= for assembly in $dlls do # Please note that due to xUnit issue we need to run tests for each assembly separately - dotnet "$runner" "$assembly" $parallel_filter -xml "netcoretest-result${index}.xml" + $dotnet "$runner" "$assembly" $parallel_filter -xml "netcoretest-result${index}.xml" if [ 0 -ne $? ] then echo -e "\033[5;41;1;37mParallel running failure!\033[0m" @@ -46,7 +49,7 @@ do done echo -e "\033[44;37m=====================SEQUENTIAL TESTS RUNNING=========================\033[0m" -dotnet "$runner" "Tests${compath}Microsoft.ML.Probabilistic.Tests.dll" $sequential_filter -parallel none -xml "netcoretest-result${index}.xml" +$dotnet "$runner" "Tests${compath}Microsoft.ML.Probabilistic.Tests.dll" $sequential_filter -parallel none -xml "netcoretest-result${index}.xml" if [ 0 -ne $? ] then echo -e "\033[5;41;1;37mSequential running failure!\033[0m"