diff mbox

[OSSTEST,24/26] rumprun: xenstorels: Do not attempt to edit the config file

Message ID 1473084154-396-25-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson Sept. 5, 2016, 2:02 p.m. UTC
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@eu.citrix.com>
---
 ts-rumprun-demo-xenstorels | 15 ---------------
 1 file changed, 15 deletions(-)
diff mbox

Patch

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();