Previously this would treat `y' and `1' as false, which is very
confusing.

Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
---
 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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to