Skip to content

Commit f68c00b

Browse files
committed
Copy test results to root
1 parent 630cf54 commit f68c00b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

eng/helix/content/runtests.cmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,12 @@ if errorlevel 1 (
5959
REM DO NOT EXIT and DO NOT SET EXIT_CODE to 1
6060
)
6161

62+
echo "Copying TestResults\* to Root\"
63+
for /r TestResults %x in (*.xml) do copy "%x" out
64+
echo "Copying artifacts/logs to %HELIX_WORKITEM_UPLOAD_ROOT%/../"
65+
shopt -s globstar
66+
for /r artifacts\log %x in (*.xml) do copy "%x" %HELIX_WORKITEM_UPLOAD_ROOT%\..\
67+
for /r artifacts\log %x in (*.xml) do copy "%x" %HELIX_WORKITEM_UPLOAD_ROOT%\
68+
6269
exit /b %exit_code%
6370

eng/helix/content/runtests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
3030
# Used by SkipOnHelix attribute
3131
export helix="$helix_queue_name"
3232

33-
3433
RESET="\033[0m"
3534
RED="\033[0;31m"
3635
YELLOW="\033[0;33m"
@@ -109,6 +108,8 @@ if [ $? != 0 ]; then
109108
# DO NOT EXIT
110109
fi
111110

111+
echo "Copying TestResults/* to Root/"
112+
cp TestResults/* .
112113
echo "Copying artifacts/logs to $HELIX_WORKITEM_UPLOAD_ROOT/../"
113114
shopt -s globstar
114115
cp artifacts/log/**/*.log $HELIX_WORKITEM_UPLOAD_ROOT/../

0 commit comments

Comments
 (0)