mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Add new test for check command and project with whitespace
This commit is contained in:
@ -521,3 +521,16 @@ int main() {}
|
||||
verbose_errors, _, _ = count_defects(result.output)
|
||||
|
||||
assert verbose_errors == errors == 1
|
||||
|
||||
|
||||
def test_check_handles_spaces_in_paths(clirunner, validate_cliresult, tmpdir_factory):
|
||||
tmpdir = tmpdir_factory.mktemp("project dir")
|
||||
config = DEFAULT_CONFIG + "\ncheck_tool = cppcheck, clangtidy, pvs-studio"
|
||||
tmpdir.join("platformio.ini").write(config)
|
||||
tmpdir.mkdir("src").join("main.cpp").write(
|
||||
PVS_STUDIO_FREE_LICENSE_HEADER + TEST_CODE
|
||||
)
|
||||
|
||||
default_result = clirunner.invoke(cmd_check, ["--project-dir", str(tmpdir)])
|
||||
|
||||
validate_cliresult(default_result)
|
||||
|
Reference in New Issue
Block a user