From 6449c8a0f3558b9e13f79e525face5a190d4197a Mon Sep 17 00:00:00 2001 From: Adam Kolodziejczyk Date: Mon, 12 Feb 2024 13:54:30 +0100 Subject: [PATCH] save test results in correct dir --- ci/container/test_component.sh | 5 ++--- ci/test.sh | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/container/test_component.sh b/ci/container/test_component.sh index 8e8efb1b3..16a712e61 100755 --- a/ci/container/test_component.sh +++ b/ci/container/test_component.sh @@ -3,8 +3,7 @@ set -o pipefail THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export SOURCE_ROOT=${SOURCE_ROOT:-/mnt/host} +export WORKSPACE=${WORKSPACE:-/mnt/workspace} cd $SOURCE_ROOT -dotnet test -f net6.0 -l "console;verbosity=normal" --logger:"junit;LogFilePath=$SOURCE_ROOT/junit-dotnet.xml" -pwd -ls -l +dotnet test -f net6.0 -l "console;verbosity=normal" --logger:"junit;LogFilePath=$WORKSPACE/junit-dotnet.xml" diff --git a/ci/test.sh b/ci/test.sh index 086fe75a3..b8ee8aec0 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -3,6 +3,7 @@ set -o pipefail THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_DIR="$(cd "${THIS_DIR}/.." && pwd)" +export WORKSPACE=${WORKSPACE:-/tmp} source $THIS_DIR/_init.sh source $THIS_DIR/scripts/login_internal_docker.sh @@ -49,4 +50,5 @@ for name in "${!TARGET_TEST_IMAGES[@]}"; do -e BUILD_NUMBER \ ${TEST_IMAGE_NAMES[$name]} \ /mnt/host/ci/container/test_component.sh + echo "[INFO] Test Results: $WORKSPACE/junit-dotnet.xml" done