Bug #27477 mysql-test-run.pl does not clear tmp-directory on start
Submitted: 27 Mar 2007 17:07 Modified: 21 Jan 2009 16:13
Reporter: Alexander Nozdrin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.0 OS:Linux (Linux)
Assigned to: li zhou CPU Architecture:Any

[27 Mar 2007 17:07] Alexander Nozdrin
Description:
mysql-test-run.pl script should clear tmp and var directories,
because we have some tests, that will not pass if the state
is "dirty".

mysql-test-run.pl clears var directory, but does not take care
of tmp.

How to repeat:
Start mysql-test-run.pl with the following options:
  --tmpdir=/tmp/t1/tmp
  --vardir=/tmp/t1/var

On the second start, /tmp/t1/var will not be cleared.

It also can be useful to start the script with --verbose --
in this case the scripts prints directories, which are cleaned.
[28 Mar 2007 8:01] Sveta Smirnova
Thank you for the report.

Verified as described.
[29 Apr 2008 5:28] 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/46170

ChangeSet@1.2578, 2008-04-29 12:58:45+00:00, lzhou@dev3-63.(none) +1 -0
  BUG#27477 Remove tmp-directory on MTR start
[9 Dec 2008 9:52] Magnus Blåudd
Sorry, not correct place to remove the tmpdir - you put it in a place to it will only be removed if "Running with "var" in some other place". 

The call to "rmtree($opt_tmpdir)" should be moved out of the if's that check where vardir is!
[9 Dec 2008 10:58] 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/61032

2735 Leonard Zhou	2008-12-09
      BUG#27477 Remove tmp-directory on MTR start
[10 Dec 2008 17:58] Magnus Blåudd
Looks good. Since PushBuild is using this feature we will quickly see how it works out. Please keep a look in PushBuild!
[15 Jan 2009 6:39] Bugs System
Pushed into 5.1.31 (revid:joro@sun.com-20090115053147-tx1oapthnzgvs1ro) (version source revid:azundris@mysql.com-20081230114838-cn52tu180wcrvh0h) (merge vers: 5.1.31) (pib:6)
[15 Jan 2009 16:13] Paul DuBois
Test suite change. No changelog entry needed.

Setting report to NDI pending push into 6.0.x.
[19 Jan 2009 11:30] Bugs System
Pushed into 5.1.31-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090119095303-uwwvxiibtr38djii) (version source revid:tomas.ulin@sun.com-20090115073240-1wanl85vlvw2she1) (merge vers: 5.1.31-ndb-6.2.17) (pib:6)
[19 Jan 2009 13:08] Bugs System
Pushed into 5.1.31-ndb-6.3.21 (revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (version source revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (merge vers: 5.1.31-ndb-6.3.21) (pib:6)
[19 Jan 2009 15:20] Jon Stephens
Setting status back to NDI pending merge to 6.0 tree.
[19 Jan 2009 16:14] Bugs System
Pushed into 5.1.31-ndb-6.4.1 (revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (version source revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (merge vers: 5.1.31-ndb-6.4.1) (pib:6)
[20 Jan 2009 19:00] Bugs System
Pushed into 6.0.10-alpha (revid:joro@sun.com-20090119171328-2hemf2ndc1dxl0et) (version source revid:azundris@mysql.com-20081230114916-c290n83z25wkt6e4) (merge vers: 6.0.9-alpha) (pib:6)
[21 Jan 2009 16:13] Paul DuBois
Test case changes. No changelog entry needed.