diff --git a/scripts/release/debian/test_deb_package.py b/scripts/release/debian/test_deb_package.py index 0d4ecb0188e..5366b80574a 100644 --- a/scripts/release/debian/test_deb_package.py +++ b/scripts/release/debian/test_deb_package.py @@ -12,7 +12,7 @@ mod_list = [mod for mod in sorted(os.listdir(root_dir)) if os.path.isdir(os.path.join(root_dir, mod)) and mod != '__pycache__'] pytest_base_cmd = '/opt/az/bin/python3 -m pytest -v --forked -p no:warnings --log-level=WARN' -pytest_parallel_cmd = '{} -n auto'.format(pytest_base_cmd) +pytest_parallel_cmd = '{} -n logical'.format(pytest_base_cmd) # cloud: https://github.com/Azure/azure-cli/pull/14994 # appservice: https://github.com/Azure/azure-cli/pull/19810 diff --git a/scripts/release/rpm/test_rpm_package.py b/scripts/release/rpm/test_rpm_package.py index c299977dd77..8b055664f4d 100644 --- a/scripts/release/rpm/test_rpm_package.py +++ b/scripts/release/rpm/test_rpm_package.py @@ -12,7 +12,7 @@ mod_list = [mod for mod in sorted(os.listdir(root_dir)) if os.path.isdir(os.path.join(root_dir, mod)) and mod != '__pycache__'] pytest_base_cmd = f'PYTHONPATH=/usr/lib64/az/lib/{python_version}/site-packages python -m pytest -v --forked -p no:warnings --log-level=WARN' -pytest_parallel_cmd = '{} -n auto'.format(pytest_base_cmd) +pytest_parallel_cmd = '{} -n logical'.format(pytest_base_cmd) # cloud: https://github.com/Azure/azure-cli/pull/14994 # appservice: https://github.com/Azure/azure-cli/pull/19810