Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

follow-up for dotnet-trace #304

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotnet-trace/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dotnet-trace",
"enabled": true,
"requireSdk": true,
"version": "6.0",
"version": "8.0",
"versionSpecific": false,
"type": "bash",
"cleanup": false,
Expand Down
14 changes: 11 additions & 3 deletions dotnet-trace/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,22 @@ else
exit 1
fi

dotnet-trace report $FILENAME topN
nicrowe00 marked this conversation as resolved.
Show resolved Hide resolved
if [ -f $REPORTNAME ]; then
output=$(dotnet-trace report $FILENAME topN)
if [[ $output == *"Missing Symbol"* ]]; then
echo "report - FAIL"
rm -r $PROJNAME
rm $FILENAME
rm $SPEEDSCOPENAME
rm $REPORTNAME
exit 1
elif [[ $output == *"Top 5 Functions (Exclusive)"* ]]; then
echo "report - OK"
else
else
echo "report - FAIL"
rm -r $PROJNAME
rm $FILENAME
rm $SPEEDSCOPENAME
rm $REPORTNAME
exit 1
fi

Expand Down
Loading