Subject: | last_script_* functions don't work for "is_script_output()" |
Date: | Thu, 24 Mar 2011 12:40:24 +1300 |
To: | bug-Test-Script-Run [...] rt.cpan.org |
From: | Mark Lawrence <nomad [...] null.net> |
It is not clear from the documentation that the last_script_* functions
only apply to the previous call to "run_script", and not also to other
test functions such as "is_script_output" or "run_output_matches" etc.
Either there is a bug in the documentation (that doesn't mention this
restriction) or a bug in the code (that doesn't set the $last_* values
where it should).
It would be nice to be able to check the command return value when
using "run_output_matches".
--
Mark Lawrence