[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/6] ts-logs-capture: Find xenctx in /usr/local as well



xenctx is now in /usr/local/lib/xen/bin/xenctx.
                     ^^^^^^
Find it by setting PATH in the shell command.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 ts-logs-capture |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ts-logs-capture b/ts-logs-capture
index 2498416..13795e8 100755
--- a/ts-logs-capture
+++ b/ts-logs-capture
@@ -210,8 +210,10 @@ sub fetch_logs_guest ($) {
            my $sysmaparg = !defined $kernpath ? '' :
                $kernpath !~ m,/vmlinuz-, ? die "$kernpath ?" :
                "-s $`/System.map-$'";
-           try_cmd_output_save("/usr/lib/xen/bin/xenctx ".$sysmaparg.
-                               " $gho->{Domid} $vcpu");
+           try_cmd_output_save(
+               'PATH=/usr/local/lib/xen/bin:/usr/lib/xen/bin:$PATH; '.
+               "xenctx $sysmaparg $gho->{Domid} $vcpu"
+               );
         }
     }
 
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.