Re: [kvm-unit-tests PATCH v2] scripts/arch-run: print stderr immediately

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

 




On 15/11/2016 15:45, Radim Krčmář wrote:
>  	# stdout to {stdout}, stderr to $errors

"stderr to $errors and stderr"

Please make the change and commit it, no need for v3!

Thanks,

Paolo

>  	exec {stdout}>&1
> -	errors=$("${@}" 2>&1 1>&${stdout})
> +	errors=$("${@}" 2> >(tee /dev/stderr) > /dev/fd/$stdout)
>  	ret=$?
>  	exec {stdout}>&-
>  
>  	if [ "$errors" ]; then
> -		printf "%s\n" "$errors" >&2
--
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