Allow to run individual interactive tests by setting FISH_PEXPECT_FILES

This command builds all test dependencies and runs the bind.py test:

	FISH_PEXPECT_FILES=../tests/pexpects/bind.py ninja test_interactive
This commit is contained in:
Johannes Altmanninger 2021-01-07 16:51:20 +01:00
parent fb873f2e98
commit 7a53c40fd4

View file

@ -20,6 +20,8 @@ set -e ITERM_PROFILE
# Test files specified on commandline, or all pexpect files.
if set -q argv[1]
set pexpect_files_to_test pexpects/$argv.py
else if set -q FISH_PEXPECT_FILES
set pexpect_files_to_test (string replace -r '^.*/(?=pexpects/)' '' -- $FISH_PEXPECT_FILES)
else
set pexpect_files_to_test pexpects/*.py
end