Merge pull request #245879 from teto/test-driver
test-driver: add persistent history
This commit is contained in:
commit
36e94693b7
1 changed files with 7 additions and 1 deletions
|
@ -106,7 +106,13 @@ def main() -> None:
|
||||||
args.keep_vm_state,
|
args.keep_vm_state,
|
||||||
) as driver:
|
) as driver:
|
||||||
if args.interactive:
|
if args.interactive:
|
||||||
ptpython.repl.embed(driver.test_symbols(), {})
|
history_dir = os.getcwd()
|
||||||
|
history_path = os.path.join(history_dir, ".nixos-test-history")
|
||||||
|
ptpython.repl.embed(
|
||||||
|
driver.test_symbols(),
|
||||||
|
{},
|
||||||
|
history_filename=history_path,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
tic = time.time()
|
tic = time.time()
|
||||||
driver.run_tests()
|
driver.run_tests()
|
||||||
|
|
Loading…
Reference in a new issue