]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
Serial::xenuse: Send xenuse output to /dev/null wip.nested-hvm.v17-pre
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 11 Nov 2015 11:51:37 +0000 (11:51 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 11 Nov 2015 16:56:31 +0000 (16:56 +0000)
Like sympathy, attaching via xenuse causes xenuse to send output from
the host to its own stdout.

But we don't want the ts-logs-capture stdout to contain this serial
output, interleaved with its own log messages.  We'll capture the
whole serial log from the xenuse logfile.  So redirect it to /dev/null.

I have checked that xenuse does (at least sometimes, eg when given a
nonexistent hostname) use stderr when something actually goes wrong.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
v17: New patch

Osstest/Serial/xenuse.pm

index e1270e0f9c17711ef041597b4d5f212f18c38927..c79d98666ea731a3d4777ab852399fd48472d349 100644 (file)
@@ -54,7 +54,7 @@ sub keys_prepare {
 
     my $xenuse= $c{XenUsePath} || "xenuse";
 
-    open XENUSEWRITE, "|$xenuse -t $ho->{Name}" or die $!;
+    open XENUSEWRITE, "|$xenuse -t $ho->{Name} >/dev/null" or die $!;
     autoflush XENUSEWRITE 1;
 
     $mo->keys_write('force attach', "\x05cf", 1); # ^E c f == force attach