From: Ian Campbell Date: Thu, 5 Sep 2013 12:56:01 +0000 (+0100) Subject: TestSupport: Massage host props with space in them X-Git-Tag: wip.xsm-13-actual.base~460^2~26 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1d28a217176f45f70f4ac987955449cdae25d26a;p=people%2Fiwj%2Fosstest.git TestSupport: Massage host props with space in them So that e.g. "build make flags" can be written in .xen-osstest/config as HostProp__BuildMakeFlags. --- diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 8330aef9..6ad703a0 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -749,6 +749,9 @@ sub propname_massage ($) { # and are moving to WordWordWord my ($prop) = @_; + # some property names are "word word word". make it word-word-word + # before massaging into WordWordWord + $prop =~ s/ /-/g; $prop = ucfirst $prop; while ($prop =~ m/-/) { $prop = $`.ucfirst $'; #';