-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log subprocess input and output #4497
Changes from all commits
259afe3
23bd77e
99d6c89
d678d2f
1f3ca18
7efdc09
07c9c0f
32f2c37
ecade95
a9c820c
e954b91
bead972
a120dd2
49d18ad
9212b55
828e351
71366f8
33bb1c6
abd4e03
69ee0d0
b4a4071
c005019
7f709ec
5ff4008
722e4f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
from typing import TYPE_CHECKING | ||
|
||
from ..cli.utils import check_dir_path, check_file_path | ||
from ..utils import run_process | ||
from ..utils import run_process_2 | ||
|
||
if TYPE_CHECKING: | ||
from collections.abc import Iterable | ||
|
@@ -37,7 +37,7 @@ def compile_kllvm(target_dir: str | Path, *, verbose: bool = False) -> Path: | |
args += ['--verbose'] | ||
|
||
_LOGGER.info(f'Compiling pythonast extension: {module_file.name}') | ||
run_process(args, logger=_LOGGER) | ||
run_process_2(args, logger=_LOGGER) | ||
|
||
assert module_file.is_file() | ||
return module_file | ||
|
@@ -87,7 +87,7 @@ def compile_runtime( | |
args += ccopts | ||
|
||
_LOGGER.info(f'Compiling python extension: {module_file.name}') | ||
run_process(args, logger=_LOGGER) | ||
run_process_2(args, logger=_LOGGER) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: |
||
|
||
assert module_file.is_file() | ||
return module_file | ||
|
@@ -123,7 +123,7 @@ def generate_hints( | |
|
||
args = [str(interpreter), str(input_kore_file), '-1', str(hints_file), '--proof-output'] | ||
_LOGGER.info(f'Generating hints: {hints_file.name}') | ||
run_process(args, logger=_LOGGER) | ||
run_process_2(args, logger=_LOGGER) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: |
||
|
||
assert hints_file.is_file() | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
from pathlib import Path | ||
from typing import TYPE_CHECKING | ||
|
||
from ..utils import run_process | ||
from ..utils import run_process_2 | ||
from .importer import import_kllvm | ||
|
||
if TYPE_CHECKING: | ||
|
@@ -12,7 +12,7 @@ | |
|
||
def get_kllvm() -> Path: | ||
args = ['llvm-kompile', '--bindings-path'] | ||
proc = run_process(args, pipe_stdout=True) | ||
proc = run_process_2(args) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: |
||
bindings_dir = Path(proc.stdout.rstrip()).resolve() | ||
kllvm_dir = bindings_dir / 'kllvm' | ||
return kllvm_dir | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
from typing import TYPE_CHECKING | ||
|
||
from ..cli.utils import check_dir_path, check_file_path | ||
from ..utils import run_process | ||
from ..utils import run_process_2 | ||
|
||
if TYPE_CHECKING: | ||
from .syntax import Pattern | ||
|
@@ -79,5 +79,5 @@ def _kore_print( | |
if color is not None: | ||
args += ['--color', 'on' if color else 'off'] | ||
|
||
run_res = run_process(args, input=input) | ||
run_res = run_process_2(args, input=input) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaking change: |
||
return run_res.stdout.strip() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Breaking change:
stderr
is not written.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New output:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old output: