File tree Expand file tree Collapse file tree 5 files changed +27
-24
lines changed
csharp/ql/integration-tests/posix
standalone_dependencies_no_framework
standalone_dependencies_nuget with_space
standalone_dependencies_nuget_no_sources
standalone_dependencies_nuget Expand file tree Collapse file tree 5 files changed +27
-24
lines changed Original file line number Diff line number Diff line change 1+ import runs_on
2+
3+
4+ def _supports_mono_nuget ():
5+ """
6+ Helper function to determine if the current platform supports Mono and nuget.
7+
8+ Returns True if running on Linux or on macOS x86_64 (excluding macos-15 and macos-26).
9+ macOS ARM runners (macos-15 and macos-26) are excluded due to issues with Mono and nuget.
10+ """
11+ return (
12+ runs_on .linux
13+ or (
14+ runs_on .macos
15+ and runs_on .x86_64
16+ and not runs_on .macos_15
17+ and not runs_on .macos_26
18+ )
19+ )
Original file line number Diff line number Diff line change 1- import runs_on
21import pytest
32import os
3+ from ..conftest import _supports_mono_nuget
44
55
6- # Skipping the test on the ARM runners and macos-15, as we're running into trouble with Mono and nuget.
7- @pytest .mark .only_if (
8- runs_on .linux
9- or (runs_on .macos and runs_on .x86_64 and not runs_on .macos_15 )
10- )
6+ @pytest .mark .only_if (_supports_mono_nuget ())
117def test (codeql , csharp ):
128 os .environ ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_DOTNET_FRAMEWORK_REFERENCES" ] = (
139 "/non-existent-path"
Original file line number Diff line number Diff line change 11import os
2- import runs_on
32import pytest
3+ from ..conftest import _supports_mono_nuget
44
55
6- # Skipping the test on the ARM runners and macos-15, as we're running into trouble with Mono and nuget.
7- @pytest .mark .only_if (
8- runs_on .linux
9- or (runs_on .macos and runs_on .x86_64 and not runs_on .macos_15 )
10- )
6+ @pytest .mark .only_if (_supports_mono_nuget ())
117def test (codeql , csharp ):
128 # making sure we're not doing any fallback restore:
139 os .environ ["CODEQL_EXTRACTOR_CSHARP_BUILDLESS_NUGET_FEEDS_CHECK_FALLBACK_TIMEOUT" ] = "1"
Original file line number Diff line number Diff line change 1- import runs_on
21import pytest
2+ from ..conftest import _supports_mono_nuget
33
44
5- # Skipping the test on the ARM runners and macos-15, as we're running into trouble with Mono and nuget.
6- @pytest .mark .only_if (
7- runs_on .linux
8- or (runs_on .macos and runs_on .x86_64 and not runs_on .macos_15 )
9- )
5+ @pytest .mark .only_if (_supports_mono_nuget ())
106def test (codeql , csharp ):
117 codeql .database .create (build_mode = "none" )
Original file line number Diff line number Diff line change 1- import runs_on
21import pytest
2+ from ..conftest import _supports_mono_nuget
33
44
5- # Skipping the test on the ARM runners, as we're running into trouble with Mono and nuget.
6- @pytest .mark .only_if (
7- runs_on .linux
8- or (runs_on .macos and runs_on .x86_64 and not runs_on .macos_15 )
9- )
5+ @pytest .mark .only_if (_supports_mono_nuget ())
106def test (codeql , csharp ):
117 codeql .database .create (source_root = "proj" , build_mode = "none" )
You can’t perform that action at this time.
0 commit comments