Re: [PATCH v3 9/9] run_tests: log stderr

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

 




On 15/04/2016 22:52, Radim Krčmář wrote:
>  	echo "exec {stdout}>&1"
>  	echo "RUNTIME_log_stdout='>(cat >&\$stdout)'"
> +	echo "RUNTIME_log_stderr=>(cat >&2)"
>  
>  	cat scripts/runtime.bash
>  
> diff --git a/scripts/runtime.bash b/scripts/runtime.bash
> index fc4be91d8727..ff2d98b547b5 100644
> --- a/scripts/runtime.bash
> +++ b/scripts/runtime.bash
> @@ -61,7 +61,8 @@ function run()
>  
>      # extra_params in the config file may contain backticks that need to be
>      # expanded, so use eval to start qemu.  Same for $RUNTIME_log_stdout.
> -    summary=$(eval $cmdline > >(eval "tee -a $RUNTIME_log_stdout" | extract_summary))
> +    summary=$(eval $cmdline > >(eval "tee -a $RUNTIME_log_stdout" | extract_summary) \
> +                            2>> $RUNTIME_log_stderr)

Whoa, so this uses the outer eval?  Perhaps the 2>> should move before
the >.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux