More parse_options tests. Make --opt yes have value "yes" instead of "1". Change ok() to cmd_ok() in test-bash-functions. Mimic Perl modulue headers in Bash libs so update-modules will work with the latter.

This commit is contained in:
Daniel Nichter
2011-10-28 11:08:59 -06:00
parent 1ec666de0e
commit f2b644ba72
7 changed files with 115 additions and 41 deletions

View File

@@ -128,9 +128,9 @@ is() {
result $?
}
ok() {
cmd_ok() {
local test_command=$1
$test_command
eval $test_command
result $?
}