forked from mirrors/nixpkgs
nixos/test: use ptpython as repl
This commit is contained in:
parent
3a28fefe7d
commit
ac97edf013
|
@ -15,6 +15,7 @@ import sys
|
|||
import tempfile
|
||||
import time
|
||||
import unicodedata
|
||||
import ptpython.repl
|
||||
|
||||
CHAR_TO_KEY = {
|
||||
"A": "shift-a",
|
||||
|
@ -690,12 +691,7 @@ def run_tests():
|
|||
eprint("error: {}".format(str(e)))
|
||||
sys.exit(1)
|
||||
else:
|
||||
while True:
|
||||
try:
|
||||
value = input("> ")
|
||||
exec(value)
|
||||
except EOFError:
|
||||
break
|
||||
ptpython.repl.embed(locals(), globals())
|
||||
|
||||
# TODO: Collect coverage data
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ in rec {
|
|||
name = "nixos-test-driver";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ python3 ];
|
||||
buildInputs = [ (python3.withPackages (p: [ p.ptpython ])) ];
|
||||
checkInputs = with python3Packages; [ pylint black ];
|
||||
|
||||
dontUnpack = true;
|
||||
|
|
Loading…
Reference in a new issue