1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

repl: Don't wait on incomplete parses from imported file

Fixes #13332.
This commit is contained in:
Eelco Dolstra 2025-06-06 14:04:44 +02:00
parent 37b4407c5c
commit d8b067b549
2 changed files with 19 additions and 11 deletions

View file

@ -277,6 +277,12 @@ testReplResponseNoRegex '
}
'
# Don't prompt for more input when getting unexpected EOF in imported files.
testReplResponse "
import $testDir/lang/parse-fail-eof-pos.nix
" \
'.*error: syntax error, unexpected end of file.*'
# TODO: move init to characterisation/framework.sh
badDiff=0
badExitCode=0