Bug #35864 mysqltest command 'skip' does not expand variables
Submitted: 7 Apr 2008 2:54 Modified: 22 Apr 2008 8:02
Reporter: Zhenxing He Email Updates:
Status: Patch pending Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S4 (Feature request)
Version:5.0, 5.1 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[7 Apr 2008 2:54] Zhenxing He
Description:
mysqltest command 'skip' does not expand variables, which makes it impossible to write code like this:

  let $feature = MyFeature;
  skip Requires $feature support;

How to repeat:
put the following line in a test file and see the output

  let $feature = MyFeature;
  skip Requires $feature support;

when run the test, the output would be:
main.tmp                         [ skipped ]   Requires $feature support

Suggested fix:
expand variables in skip
[22 Apr 2008 8:02] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/45801

ChangeSet@1.2613, 2008-04-22 13:08:31+08:00, hezx@mail.hezx.com +1 -0
  BUG#35864 mysqltest command 'skip' does not expand variables
  
  mysqltest skip and die command do not expand variables in its arguments,
  this patch will enable variable expansion for these two commands