MCPcopy
hub / github.com/saltstack/salt / run

Method run

setup.py:534–553  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

532 """
533
534 def run(self):
535 # This should either be removed or migrated to use nox
536 import subprocess
537
538 self.run_command("build")
539 build_cmd = self.get_finalized_command("build_ext")
540 runner = os.path.abspath("tests/runtests.py")
541 test_cmd = [sys.executable, runner]
542 if self.runtests_opts:
543 test_cmd.extend(self.runtests_opts.split())
544
545 print("running test")
546 ret = subprocess.run(
547 test_cmd,
548 stdout=sys.stdout,
549 stderr=sys.stderr,
550 cwd=build_cmd.build_lib,
551 check=False,
552 )
553 sys.exit(ret.returncode)
554
555
556class Clean(clean):

Callers

nothing calls this directly

Calls 4

run_commandMethod · 0.80
exitMethod · 0.80
extendMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected