Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ def check_in_prelude(deducable : str, stdlib_dir : str) -> bool:
if i + 1 < len(sys.argv) and sys.argv[i+1] == 'full':
set_verbose(VerboseLevel.FULL)
set_unique_names(True)
already_processed_next = True
else:
set_verbose(VerboseLevel.CURR_ONLY)
elif argument == '--dir' and i + 1 < len(sys.argv):
Expand Down
11 changes: 11 additions & 0 deletions test-deduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -1564,6 +1564,17 @@ def run_cli_test() -> list[tuple[str, str, str]]:
cli_path, "cli",
f"unexpected stdout:\n{cp.stdout[:500]}",
))
# `--verbose full` takes `full` as its level, not as a file (#1302).
verbose_cp = subprocess.run(
[sys.executable, "deduce.py", "--no-stdlib", "--verbose", "full", cli_path],
capture_output=True, text=True,
)
if verbose_cp.returncode != 0 or "theorem_true.pf is valid" not in verbose_cp.stdout:
failures.append((
"deduce.py --verbose full", "cli",
f"exit {verbose_cp.returncode}\nstderr: {verbose_cp.stderr[:500]}\n"
f"stdout: {verbose_cp.stdout[-500:]}",
))
help_cp = subprocess.run(
[sys.executable, "deduce.py", "--help"],
capture_output=True, text=True,
Expand Down
Loading