From 6969cfab3dc20de9f757b94b8832b504ed1fdd40 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Wed, 23 Dec 2015 15:24:45 -0800 Subject: fix unit tests related to the escape timeout --- tests/interactive.fish | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) mode change 100644 => 100755 tests/interactive.fish (limited to 'tests/interactive.fish') diff --git a/tests/interactive.fish b/tests/interactive.fish old mode 100644 new mode 100755 index ad53e262..9f5e979c --- 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 -- cgit v1.2.3