made copy_Current2Current and copy_Current2Current in testclass more verbose, added numerics with fixed seed to compile test to get always exactly the same results
This commit is contained in:
parent
478a6d110c
commit
7ce583405f
|
@ -136,11 +136,17 @@ class Test():
|
||||||
|
|
||||||
def copy_Reference2Current(self,files=[]):
|
def copy_Reference2Current(self,files=[]):
|
||||||
for file in files:
|
for file in files:
|
||||||
|
try:
|
||||||
shutil.copy2(self.fileInReference(file),self.fileInCurrent(file))
|
shutil.copy2(self.fileInReference(file),self.fileInCurrent(file))
|
||||||
|
except:
|
||||||
|
print 'Unable to copy file ', file
|
||||||
|
|
||||||
def copy_Current2Current(self,files=[]):
|
def copy_Current2Current(self,files=[]):
|
||||||
for file in files:
|
for file in files:
|
||||||
|
try:
|
||||||
shutil.copy2(self.fileInCurrent(file[0]),self.fileInCurrent(file[1]))
|
shutil.copy2(self.fileInCurrent(file[0]),self.fileInCurrent(file[1]))
|
||||||
|
except:
|
||||||
|
print 'Unable to copy file ', file
|
||||||
|
|
||||||
def execute_inCurrentDir(self,cmd):
|
def execute_inCurrentDir(self,cmd):
|
||||||
os.chdir(self.dirCurrent())
|
os.chdir(self.dirCurrent())
|
||||||
|
|
Loading…
Reference in New Issue