[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 11/11] TestSupport: guest_var_boolean: Understand `y' and `1' as well
Previously this would treat `y' and `1' as false, which is very confusing. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- Osstest/TestSupport.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 7bc40f3..d8ed02d 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1825,7 +1825,7 @@ sub guest_var ($$$) { sub guest_var_boolean ($$) { my ($gho, $runvartail) = @_; - return guest_var($gho, $runvartail, 'false') =~ m/true/; + return guest_var($gho, $runvartail, 'false') =~ m/true|y|1/; } sub guest_var_commalist ($$) { -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |