From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 09/13] rump kernel tests: Use guest-specific fs images location Date: Tue, 15 Jul 2014 16:22:23 +0100 Message-ID: <1405437747-12753-10-git-send-email-ian.jackson@eu.citrix.com> References: <1405437747-12753-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X74Z1-0005me-F3 for xen-devel@lists.xenproject.org; Tue, 15 Jul 2014 15:22:43 +0000 In-Reply-To: <1405437747-12753-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org We are going to want to have multiple different guests in the same job. Don't use the same locations for all of their fs images. Signed-off-by: Ian Jackson --- ts-rumpuserxen-demo-setup | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ts-rumpuserxen-demo-setup b/ts-rumpuserxen-demo-setup index 4ad77f8..68ec7d4 100755 --- a/ts-rumpuserxen-demo-setup +++ b/ts-rumpuserxen-demo-setup @@ -42,7 +42,7 @@ sub prep () { my @images; - my $jobdir = target_jobdir($ho); + my $fsimagesdir = target_jobdir($ho)."/$gn-images"; my $cfgfile = "$gn.cfg"; my $cfgpath = "/etc/xen/$cfgfile"; @@ -62,7 +62,7 @@ sub prep () { if ($in eq 'disk') { s{\b img/(\w+.ffs) \b}{ push @images, $1; - "$jobdir/$1"; + "$fsimagesdir/$1"; }xeg; } @@ -72,8 +72,11 @@ sub prep () { store_runvar("$gho->{Guest}_cfgpath", $cfgpath); - target_cmd($ho, "cp $rkdist/img/$_ $jobdir/$_", 200) - foreach @images; + target_cmd($ho, <