Runing 'dotnet test' in a task isn't working! :(

Hi,
I’m running many ‘dotnet’ commands within a ‘mcr.microsoft.com/dotnet/core/sdk:3.1.101-bionic’ container, but the ‘test’ one doesn’t work.
Has anyone here ever had this happen to them?

Task:

---
platform: linux
image_resource:
  type: docker-image
  source:
    repository: mcr.microsoft.com/dotnet/core/sdk
    tag: 3.1.101-bionic
inputs:
- name: built
outputs:
- name: test-results
run:
  path: sh
  args:
  - -exec
  - |
    ls -la
    chmod u+x built/Pipelines/CI/Scripts/test.sh
    bash built/Pipelines/CI/Scripts/test.sh 
    cp -a built/TestResults/. test-results/

test.sh

#!/bin/bash
parent_path=$(cd "$(dirname "${BASH_SOURCE[0]}")";pwd -P)
common="$parent_path"/../../Scripts
source $common/header.sh
cd built/Tests/Unit
cd Morsley.UK.Walking.Skeleton.API.UnitTests
dotnet test --verbosity=normal \
            --no-build \
            --no-restore \
            --results-directory=built/TestResults \
            --logger=trx \
            --configuration=Release

Results:

+ ls -la

[21:45:43](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:2)

total 16

[21:45:43](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:3)

drwxr-xr-x 4 root root 4096 Feb 5 21:45 .

[21:45:43](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:4)

drwxr-xr-x 3 root root 4096 Feb 5 21:45 ..

[21:45:43](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:5)

drwxr-xr-x 1 root root 4096 Feb 5 21:45 built

[21:45:43](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:6)

drwxr-xr-x 2 root root 4096 Feb 5 21:45 test-results

[21:45:43](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:7)

+ chmod u+x built/Pipelines/CI/Scripts/test.sh

[21:45:43](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:8)

+ bash built/Pipelines/CI/Scripts/test.sh

[21:45:44](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:9)

Build started 02/05/2020 21:45:44.

[21:45:44](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:10) [21:45:44](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:11)

Build succeeded.

[21:45:44](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:12)

0 Warning(s)

[21:45:44](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:13)

0 Error(s)

[21:45:44](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:14) [21:45:44](http://localhost:8080/teams/main/pipelines/walking-skeleton/jobs/ci/builds/2#L5e3b3402:15)

Time Elapsed 00:00:00.27