From 7a53c40fd43ed362debe22393c3d506bb6ad60be Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 7 Jan 2021 16:51:20 +0100 Subject: [PATCH] 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 --- tests/interactive.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/interactive.fish b/tests/interactive.fish index 4f5d39041..6a1228453 100644 --- a/tests/interactive.fish +++ b/tests/interactive.fish @@ -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