Bug #43143 mysqltest: Let --die expand variables
Submitted: 24 Feb 2009 12:33 Modified: 11 Aug 2009 8:27
Reporter: Jørgen Austvik Email Updates:
Status: Duplicate Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S4 (Feature request)
Version: OS:Any
Assigned to: Bjørn Munch CPU Architecture:Any

[24 Feb 2009 12:33] Jørgen Austvik
Description:
In mysqltest,

--die Error: $my_error

gives:

mysqltest: At line 100: Error: $my_error

I think it would be better it the $variable was expanded so that we could use it to add more information in the error message.

How to repeat:
Create a test that contains

let $var= something;
die Error: $var

...and see that the output is:

mysqltest: At line 2: Error: $var

instead of

mysqltest: At line 2: Error: something
[29 Apr 2009 11:51] Valeriy Kravchuk
Thank you for the feature request.
[11 Aug 2009 8:27] Bjørn Munch
This is a special case of the newer Bug #46528, which I would prefer to make a general solution for rather than adding hacks for individual commands.