Added repro_env_break debugging command. This spawn a terminal inside the temp home folder with the same environment as the python test

This commit is contained in:
Qubasa
2023-10-21 17:19:06 +02:00
parent 59393bb35e
commit d1c35301e3
15 changed files with 133 additions and 42 deletions

View File

@@ -158,7 +158,11 @@ def read_machine_option_value(
def get_or_set_option(args: argparse.Namespace) -> None:
if args.value == []:
print(read_machine_option_value(args.machine, args.option, args.show_trace))
print(
read_machine_option_value(
args.flake, args.machine, args.option, args.show_trace
)
)
else:
# load options
if args.options_file is None:
@@ -355,6 +359,7 @@ def register_parser(
help="name of the flake to set machine options for",
)
def main(argv: Optional[list[str]] = None) -> None:
if argv is None:
argv = sys.argv