yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11893
[Branch ~yade-pkg/yade/git-trunk] Rev 3604: Clean current directory after --check
------------------------------------------------------------
revno: 3604
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Mon 2015-03-02 15:54:02 +0100
message:
Clean current directory after --check
checkTestTriax.py leaves some files after the execution.
Move them in temporary created directory not to pollute
the current one.
Pay attention, /tmp-directory is usually cleaned by operating
system init scripts after each reboot. So those files will
likely be removed too.
modified:
scripts/checks-and-tests/checks/checkTestTriax.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'scripts/checks-and-tests/checks/checkTestTriax.py'
--- scripts/checks-and-tests/checks/checkTestTriax.py 2014-11-18 19:46:27 +0000
+++ scripts/checks-and-tests/checks/checkTestTriax.py 2015-03-02 14:54:02 +0000
@@ -5,7 +5,7 @@
# internal compaction without friction, so that it is initially at equilibrium without shear forces.
# Positions and reference results are in data folder.
from yade import pack,utils,export,plot
-import math,os,sys
+import math,os,sys,shutil,tempfile
tolerance=0.01
interactive=False
@@ -30,3 +30,10 @@
if (errors):
resultStatus +=1 #Test is failed
+
+dirpath = tempfile.mkdtemp()
+shutil.move('checkTest.yade',dirpath)
+shutil.move('_Unloaded_380_3.spheres',dirpath)
+shutil.move('_Unloaded_380_3.xml',dirpath)
+shutil.move('WallStresses',dirpath)
+print "Files checkTest.yade, _Unloaded_380_3.spheres, _Unloaded_380_3.xml and WallStresses are moved into %s/ directory"%dirpath