-
Notifications
You must be signed in to change notification settings - Fork 5
V10.1.0/xunitv3 troubleshooting #135
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
Changes from all commits
89029f7
16969c8
76768fe
d4a43f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,6 +131,17 @@ jobs: | |||||||||||||
| pattern: '*-${{ matrix.configuration }}' | ||||||||||||||
| merge-multiple: true | ||||||||||||||
|
|
||||||||||||||
| - name: Fix Linux test apphost permissions | ||||||||||||||
| run: | | ||||||||||||||
| echo "Ensuring xUnit v3 test apphosts are executable on Linux..." | ||||||||||||||
| echo "Configuration: ${{ matrix.configuration }}" | ||||||||||||||
| # Dump a bit of info for debugging | ||||||||||||||
| find . -path "*/bin/${{ matrix.configuration }}/net*/*" -maxdepth 1 -type f -name "*Tests*" -print || true | ||||||||||||||
| # Actually fix permissions | ||||||||||||||
| find . -path "*/bin/${{ matrix.configuration }}/net*/*" -type f -name "*Tests*" -exec chmod +x {} + | ||||||||||||||
|
Comment on lines
+139
to
+141
|
||||||||||||||
| find . -path "*/bin/${{ matrix.configuration }}/net*/*" -maxdepth 1 -type f -name "*Tests*" -print || true | |
| # Actually fix permissions | |
| find . -path "*/bin/${{ matrix.configuration }}/net*/*" -type f -name "*Tests*" -exec chmod +x {} + | |
| find . -path "*/bin/${{ matrix.configuration }}/net*/*" -maxdepth 1 -type f -name "*Tests" ! -name "*.*" -print || true | |
| # Actually fix permissions | |
| find . -path "*/bin/${{ matrix.configuration }}/net*/*" -type f -name "*Tests" ! -name "*.*" -exec chmod +x {} + |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -111,6 +111,16 @@ | |||
|
|
||||
| <PropertyGroup Condition="'$(IsBenchmarkProject)' == 'true'"> | ||||
| <TargetFrameworks>net10.0;net9.0</TargetFrameworks> | ||||
| <TargetFrameworks>net10.0;net9.0</TargetFrameworks> | ||||
|
||||
| <TargetFrameworks>net10.0;net9.0</TargetFrameworks> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
-maxdepth 1option is placed incorrectly in thefindcommand. Infind,-maxdepthmust appear before other search criteria like-typeand-name. The correct placement is:Note: Since you're searching for paths like
*/bin/${{ matrix.configuration }}/net*/*, you need a maxdepth of at least 4-5 levels from the current directory (e.g.,./test/ProjectName.Tests/bin/Debug/net10.0/ProjectName.Tests). Alternatively, remove-maxdepthentirely from the debug line since it's only for informational purposes.