From 62ecb39a1f9a58e0dc4bbaaec84968dc552b80c2 Mon Sep 17 00:00:00 2001 From: David McFarland Date: Fri, 16 Sep 2022 16:43:44 -0300 Subject: [PATCH] buildDotnetModule: run tests on projectFile if testProjectFile is unset --- .../dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh index 0c0e5d310eab..fcb77c063bfc 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh +++ b/pkgs/build-support/dotnet/build-dotnet-module/hooks/dotnet-check-hook.sh @@ -16,7 +16,7 @@ dotnetCheckHook() { local -r maxCpuFlag="1" fi - for project in ${testProjectFile[@]-}; do + for project in ${testProjectFile[@]-${projectFile[@]}}; do env "LD_LIBRARY_PATH=@libraryPath@" \ dotnet test "$project" \ -maxcpucount:$maxCpuFlag \