Package pysys :: Module baserunner :: Class TestContainer
[hide private]
[frames] | no frames]

Class TestContainer

source code

Class used for co-ordinating the execution of a single test case.

Instance Methods [hide private]
 
__init__(self, counter, descriptor, cycle, runner)
Create an instance of the TestContainer class.
source code
 
__call__(self, *args, **kwargs)
Over-ridden call builtin to allow the class instance to be called directly.
source code
 
purgeDirectory(self, dir, delTop=False)
Recursively purge a directory removing all files and sub-directories.
source code
integer
detectCore(self, dir)
Detect any core files in a directory (unix systems only), returning True if a core is present.
source code
Method Details [hide private]

__init__(self, counter, descriptor, cycle, runner)
(Constructor)

source code 

Create an instance of the TestContainer class.

Parameters:
  • descriptor - A reference to the testcase descriptor
  • cycle - The cycle number of the test
  • runner - A reference to the runner that created this class

purgeDirectory(self, dir, delTop=False)

source code 

Recursively purge a directory removing all files and sub-directories.

Parameters:
  • dir - The top level directory to be purged
  • delTop - Indicates if the top level directory should also be deleted

detectCore(self, dir)

source code 

Detect any core files in a directory (unix systems only), returning True if a core is present.

Parameters:
  • dir - The directory to search for core files
Returns: integer
True if a core detected, None if no core detected