]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
TestSupport: Massage host props with space in them
authorIan Campbell <ian.campbell@citrix.com>
Thu, 5 Sep 2013 12:56:01 +0000 (13:56 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 5 Sep 2013 12:56:01 +0000 (13:56 +0100)
So that e.g. "build make flags" can be written in .xen-osstest/config as
HostProp_<HOST>_BuildMakeFlags.

Osstest/TestSupport.pm

index 8330aef9723809e6b843dbb918f95b5e7dafe661..6ad703a057b04dbcb0b5f0f17cac37c989377f9b 100644 (file)
@@ -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 $'; #';