diff options
author | Kurtis Rader <krader@skepticism.us> | 2015-12-23 15:24:45 -0800 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2015-12-23 21:41:48 -0800 |
commit | 6969cfab3dc20de9f757b94b8832b504ed1fdd40 (patch) | |
tree | 1c7a262d168135eb226aa655692b63945fff7cd3 /tests/interactive.fish | |
parent | 814cb51eb5dafac779324cf8a9ce4c7894b3af9a (diff) |
fix unit tests related to the escape timeout
Diffstat (limited to 'tests/interactive.fish')
-rwxr-xr-x[-rw-r--r--] | tests/interactive.fish | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/interactive.fish b/tests/interactive.fish index ad53e262..9f5e979c 100644..100755 --- a/tests/interactive.fish +++ b/tests/interactive.fish @@ -2,7 +2,17 @@ # # Interactive tests using `expect` -source test_util.fish (status -f); or exit +# Change to directory containing this script +cd (dirname (status -f)) + +# Test files specified on commandline, or all *.expect files +if set -q argv[1] + set files_to_test $argv.expect +else + set files_to_test *.expect +end + +source test_util.fish (status -f) $argv; or exit say -o cyan "Testing interactive functionality" if not type -q expect @@ -65,7 +75,7 @@ function test_file end set -l failed -for i in *.expect +for i in $files_to_test if not test_file $i set failed $failed $i end |