1- # This file is part of Arduino Lint.
2- #
31# Copyright 2020 ARDUINO SA(http: // www.arduino.cc/)
42#
53# This software is released under the GNU General Public License version 3,
6- # which covers the main part of Arduino Lint.
74# The terms of this license can be found at:
85# https: // www.gnu.org/licenses/gpl-3.0.en.html
96#
@@ -265,7 +262,7 @@ def run_command(pytestconfig, working_dir) -> typing.Callable[..., invoke.runner
265262 http://docs.pyinvoke.org/en/1.4/api/runners.html#invoke.runners.Result
266263 """
267264
268- arduino_lint_path = pathlib .Path (pytestconfig .rootdir ).parent / "arduino-lint"
265+ executable_path = pathlib .Path (pytestconfig .rootdir ).parent / "arduino-lint"
269266
270267 def _run (
271268 cmd : list , custom_working_dir : typing .Optional [str ] = None , custom_env : typing .Optional [dict ] = None
@@ -277,7 +274,7 @@ def _run(
277274 quoted_cmd = []
278275 for token in cmd :
279276 quoted_cmd .append (f'"{ token } "' )
280- cli_full_line = '"{}" {}' .format (arduino_lint_path , " " .join (quoted_cmd ))
277+ cli_full_line = '"{}" {}' .format (executable_path , " " .join (quoted_cmd ))
281278 run_context = invoke .context .Context ()
282279 # It might happen that we need to change directories between drives on Windows,
283280 # in that case the "/d" flag must be used otherwise directory wouldn't change
@@ -300,5 +297,5 @@ def working_dir(tmpdir_factory) -> str:
300297 """Create a temporary folder for the test to run in. It will be created before running each test and deleted at the
301298 end. This way all the tests work in isolation.
302299 """
303- work_dir = tmpdir_factory .mktemp (basename = "ArduinoLintTestWork" )
304300 yield str (work_dir )
301+ work_dir = tmpdir_factory .mktemp (basename = "IntegrationTestWorkingDir" )
0 commit comments