Re: [Qemu-devel] [PATCH 05/10] qemu-iotests: define functions used in _cleanup() before its use

2017-12-01 Thread Eric Blake
On 11/16/2017 11:38 AM, Cleber Rosa wrote: The functions used in _cleanup() come from common.rc, which currently gets sourced after _cleanup() is defined and registered as a signal handler. When _cleanup() is executed, it has no valid references to those functions, as BASH won't resolve the refe

Re: [Qemu-devel] [PATCH 05/10] qemu-iotests: define functions used in _cleanup() before its use

2017-12-01 Thread Max Reitz
On 2017-11-16 18:38, Cleber Rosa wrote: > The functions used in _cleanup() come from common.rc, which currently > gets sourced after _cleanup() is defined and registered as a signal > handler. When _cleanup() is executed, it has no valid references to > those functions, as BASH won't resolve the r

[Qemu-devel] [PATCH 05/10] qemu-iotests: define functions used in _cleanup() before its use

2017-11-16 Thread Cleber Rosa
The functions used in _cleanup() come from common.rc, which currently gets sourced after _cleanup() is defined and registered as a signal handler. When _cleanup() is executed, it has no valid references to those functions, as BASH won't resolve the reference at that time. While at it, also fix so