mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
fb873f2e98
commit
7a53c40fd4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue