Freddy Vulto 11da957e45 (testsuite) `match_items()' matches on bash-prompt
Also made `match_items()' more strict about matching
space/newline/prompt after the last item.

Added options to match_items():
- end-newline
- end-prompt
- end-space
and transferred them to other functions.

Function `assert_complete()' now has a `-nospace' option to explicitly
disallow a space after a completion...

Function `assert_bash_list()' now expects a single item to be followed
by a newline.
2010-11-17 23:36:58 +01:00

28 lines
307 B
Plaintext

proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified {/OLDPWD/d}
}
setup
assert_complete_dir foo.d/ "sudo cd fo" $::srcdir/fixtures/shared/default \
"" -nospace
sync_after_int
assert_complete_dir fixtures/ "sudo sh fix" $::srcdir "" -nospace
sync_after_int
teardown