[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 24/26] rumprun: xenstorels: Do not attempt to edit the config file
There is no config file any more, so this function now crashes due to passing undef to target_editfile_root. We do not need to edit it to set on_poweroff to preserve because this is the default for rumprun. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- ts-rumprun-demo-xenstorels | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ts-rumprun-demo-xenstorels b/ts-rumprun-demo-xenstorels index 47aa289..a40110a 100755 --- a/ts-rumprun-demo-xenstorels +++ b/ts-rumprun-demo-xenstorels @@ -30,20 +30,6 @@ our $domid; our $gn = $gho->{Guest}; -sub arrangepreserve () { - target_editfile_root($ho,$r{"$gho->{Guest}_cfgpath"}, sub { - while (<EI>) { - if (m/^\s*on_poweroff\s*=/) { - target_editfile_cancel("already configured to preserve") - if m/\bpreserve\b/; - next; - } - print EO or die $!; - } - print EO "\n","on_poweroff='preserve'\n" or die $!; - }); -} - sub start () { rumprun_guest_create($gho); @@ -118,7 +104,6 @@ sub check_output () { } } -arrangepreserve(); start(); await_end(); check_output(); -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |