[MDEV-11619] mtr: environment MTR_MEM conflicts with --mem Created: 2016-12-21 Updated: 2017-02-27 Resolved: 2017-02-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 10.0.28, 10.1.20, 10.2.3 |
| Fix Version/s: | 10.0.30, 10.1.22, 10.2.5 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Daniel Black | Assignee: | Daniel Black |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | community, contribution, foundation, patch | ||
| Sprint: | 5.5.55, 10.0.30 |
| Description |
|
Since 716621db3f3055781e24f561325cec6eac181717, opt_mem is This leads to conflicts when MTR_MEM=/xxx/yy ./mtr --mem is |
| Comments |
| Comment by Elena Stepanova [ 2016-12-26 ] | ||||||||||||||||||||||||||||||
|
danblack, serg, | ||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2017-01-08 ] | ||||||||||||||||||||||||||||||
|
I couldn't work out why it was applied either. | ||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-01-10 ] | ||||||||||||||||||||||||||||||
|
So, shall we just revert it? | ||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2017-01-10 ] | ||||||||||||||||||||||||||||||
|
worked it out, using MTR_MEM environment variable and --mem caused MTR_MEM to be ignored. The new PR attached is tested as follows: MTR_MEM value is used
MTR_MEM value used
No MTR_MEM used
--mem argument used
Default mtr paths tested and symlinks aren't used.
| ||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-02-19 ] | ||||||||||||||||||||||||||||||
|
https://github.com/MariaDB/server/commit/5e42c958a56f038c51952ddb9464686c1939201b | ||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-02-20 ] | ||||||||||||||||||||||||||||||
|
I've found the reason why (probably) --mem was made a pure flag. The provided patch breaks common operation. If MTR is envoked so that --mem is immediately followed by command-line arguments (test names), the first test is considered to be the value of mem option rather than a test name. The "value" is later ignored because the location of course does not exist, but the test is not executed. Example:
| ||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2017-02-21 ] | ||||||||||||||||||||||||||||||
|
thanks elenst, fixed in pr #317 | ||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-02-21 ] | ||||||||||||||||||||||||||||||
|
danblack, see my comment in the PR. | ||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-02-27 ] | ||||||||||||||||||||||||||||||
|
The change is partially reverted, --mem is a pure flag again. https://github.com/MariaDB/server/commit/b54566d73bb96ef9eb7d734742d3743fb3369a40 |