Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Don't run domain reload tests in soft mode, increase timeout
  • Loading branch information
BadSingleton committed Apr 29, 2021
commit d66a290d6cde2cfc857ab945f90f87a25d7074e4
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build-test:
name: Build and Test
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 5
timeout-minutes: 7

strategy:
fail-fast: false
Expand Down
14 changes: 10 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,18 @@ def pytest_configure(config):
import clr
clr.AddReference("Python.Test")

if config.getoption("--runtime") == "netcore":
soft_mode = False
try:
os.environ['PYTHONNET_SHUTDOWN_MODE'] == 'Soft'
except: pass

if config.getoption("--runtime") == "netcore" or soft_mode\
:
collect_ignore.append("domain_tests/test_domain_reload.py")
else:
domain_tests_dir = os.path.join(os.path.dirname(__file__), 'domain_tests')
bin_path = os.path.join(domain_tests_dir, 'bin')
check_call(["dotnet", "build", domain_tests_dir, '-o', bin_path])
domain_tests_dir = os.path.join(os.path.dirname(__file__), "domain_tests")
bin_path = os.path.join(domain_tests_dir, "bin")
check_call(["dotnet", "build", domain_tests_dir, "-o", bin_path])



Expand Down