Fix Rhizome test defs: assert_stdout_add_file

If a name=wah argument is supplied, it should override
the supplied filename
This commit is contained in:
Andrew Bettison 2015-03-02 12:13:03 +10:30
parent 6824977800
commit 0c0136499e

View File

@ -153,6 +153,7 @@ assert_stdout_add_file() {
value="${arg#*=}"
fieldname="${arg%%=*}"
assertStdoutGrep --matches=1 "^$fieldname:$value\$"
eval opt_${fieldname#.}=false
;;
*)
error "unsupported argument: $arg"