Skip to content

Commit

Permalink
save test results in correct dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-akolodziejczyk committed Feb 26, 2024
1 parent 1394f50 commit 6449c8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ci/container/test_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 6449c8a

Please sign in to comment.