mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Minor Py.Test fixes
This commit is contained in:
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ format:
|
||||
black ./tests
|
||||
|
||||
test:
|
||||
py.test --verbose --capture=no --exitfirst -n 6 --dist=loadscope tests --ignore tests/test_examples.py
|
||||
py.test --verbose --exitfirst -n 6 --dist=loadscope tests --ignore tests/test_examples.py
|
||||
|
||||
before-commit: isort format lint
|
||||
|
||||
|
@ -70,7 +70,7 @@ class BasePackageManager( # pylint: disable=too-many-public-methods,too-many-in
|
||||
|
||||
def _setup_logger(self):
|
||||
logger = logging.getLogger(str(self.__class__.__name__).replace("Package", " "))
|
||||
logger.setLevel(logging.ERROR if PlatformioCLI.in_silence() else logging.INFO)
|
||||
logger.setLevel(logging.INFO)
|
||||
formatter = logging.Formatter("%(name)s: %(message)s")
|
||||
sh = logging.StreamHandler(sys.stdout)
|
||||
sh.setFormatter(formatter)
|
||||
|
@ -38,8 +38,10 @@ def validate_cliresult():
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def clirunner(request):
|
||||
def clirunner(request, tmpdir_factory):
|
||||
cache_dir = tmpdir_factory.mktemp(".cache")
|
||||
backup_env_vars = {
|
||||
"PLATFORMIO_CACHE_DIR": {"new": str(cache_dir)},
|
||||
"PLATFORMIO_WORKSPACE_DIR": {"new": None},
|
||||
}
|
||||
for key, item in backup_env_vars.items():
|
||||
|
Reference in New Issue
Block a user