Bug #43607 | mysqltest command disable_abort_on_error invalidated by error command | ||
---|---|---|---|
Submitted: | 12 Mar 2009 17:03 | Modified: | 17 Mar 2010 11:41 |
Reporter: | Ingo Strüwing | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Tools: MTR / mysql-test-run | Severity: | S3 (Non-critical) |
Version: | 6.0 | OS: | Any |
Assigned to: | Bjørn Munch | CPU Architecture: | Any |
[12 Mar 2009 17:03]
Ingo Strüwing
[12 Mar 2009 17:15]
Ingo Strüwing
Suggest triage values: Defect: medium. I'm unsure if this might be as designed. :( Workaround: none. Impact: minimal. Feature used during test case development [almost] only.
[19 Jun 2009 9:14]
Bjørn Munch
Behavior probably not intended
[10 Feb 2010 15:29]
Matthias Leich
Hi, I added the "--disable_abort_on_error" and the $mysql_errno feature years ago and can confirm that the behaviour related to SQL commands is intended. Commands like for example "remove_file" or "if (`<some SQL command>`)" did not exist in 2004. 1. "--disable_abort_on_error" should apply to SQL commands. 2. In case we have a sequence of SQL statements between "--disable_abort_on_error" and "--enable_abort_on_error" than it should be easy for the test author to switch to strict checking for one particular statement of this sequence. If he writes a "--error <number>" before some statement than this should overrule any "*_abort_on_error" setting. 3. In case we run with "--disable_abort_on_error" than we might want to exploit the SQL code of the last statement for test flow control. Therefore the SQL code of the last statement is stored im $mysql_errno. Based on my current experiences I think - 2. is neither clear bad nor clear good - "--disable_abort_on_error" + $mysql_errno would be also very useful for commands like connect/disconnect/connection/remove_file/exec/... - long statements sequences between "--disable_abort_on_error" and "--enable_abort_on_error" are rare and in many cases weak test design - an option which affects just the next statement like "--error undefined" + $mysql_errno would have most probably been a better solution There is probably a significant number of tricky tests which might fail in case the current behaviour gets changed.
[10 Feb 2010 15:39]
Bjørn Munch
Last comment is right, this is not a bug, in fact it is intentional and documented. Sorry for not closing this before; it ended up behind a large stack of bugs and not seriously looked at.
[17 Mar 2010 11:41]
Bjørn Munch
Closing (from Not a Bug) to get this off my list