]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
ts-debian-fixup: remove dead code
authorWei Liu <wei.liu2@citrix.com>
Tue, 17 Sep 2013 19:12:33 +0000 (20:12 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 14 Oct 2013 17:04:51 +0000 (18:04 +0100)
Per c7910040 ("Osstest.pm, toolstack()->; always use "cfg", not separate
xl configs"), we only pick the config file with .cfg suffix.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
ts-debian-fixup

index d8b51b79dfda5d0c546e5add61ac6ae454a16bb9..f00141858774a26aafa7d7053b8bb2a0b76ceae0 100755 (executable)
@@ -163,23 +163,6 @@ sub writecfg () {
     target_putfile_root($ho,10, $cfgstash, $cfgfile);
 }
 
-sub xlcfg () {
-    my $cfg_xend= target_var($gho,'cfgpath');
-    my $cfg_xl= "/etc/xen/$gho->{Name}.xl";
-    store_runvar("$gho->{Guest}_xlpath", $cfg_xl);
-    target_editfile_root($ho, $cfg_xend, undef, $cfg_xl, sub {
-        local ($/)= undef;
-        $_= <EI>;
-        s/^ [ \t]* memory [ \t]* \= [ \t]* ['"] (.+) ['"] [ \t]*
-          $/memory=$1/mx;
-        s/([[,])\s*\n/$1/g;
-        s/,\s*\]/\]/g;
-        s/([^#\n].*)\n/$1;\n/mg;
-        s/\n\n+/\n/g;
-        print EO or die $!;
-    });
-}
-
 savecfg();
 ether();
 target_kernkind_check($gho);
@@ -188,5 +171,4 @@ console();
 filesystems();
 otherfixupcfg();
 writecfg();
-xlcfg();
 unmount();