mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08: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
@ -20,6 +20,8 @@ set -e ITERM_PROFILE
|
|||||||
# Test files specified on commandline, or all pexpect files.
|
# Test files specified on commandline, or all pexpect files.
|
||||||
if set -q argv[1]
|
if set -q argv[1]
|
||||||
set pexpect_files_to_test pexpects/$argv.py
|
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
|
else
|
||||||
set pexpect_files_to_test pexpects/*.py
|
set pexpect_files_to_test pexpects/*.py
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user