MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / run

Method run

tests/cli/conftest.py:71–84  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

69 return dst
70
71 def run(self, *args):
72 p = subprocess.Popen(
73 [self.executable] + list(args),
74 cwd=self.tmpdir,
75 stdout=subprocess.PIPE,
76 stderr=subprocess.PIPE,
77 universal_newlines=True,
78 env=self._env(),
79 )
80 stdout, stderr = p.communicate()
81 # output to stdout/stderr because it helps debugging failed tests
82 sys.stdout.write(stdout)
83 sys.stderr.write(stderr)
84 return p.returncode, stdout, stderr
85
86 def _env(self):
87 # Important: Use deepcopy to avoid propagating these changes to following runs!

Callers 15

openProjectMethod · 0.45
test_explicitFunction · 0.45
test_valid_callFunction · 0.45
test_valid_lpFunction · 0.45
test_invalid_lpFunction · 0.45
test_open_library_allFunction · 0.45

Calls 2

_envMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected