Package schrodinger :: Package test :: Package stu :: Module run :: Class TestJob
[hide private]
[frames] | no frames]

Class TestJob

object --+
         |
        TestJob

Interface for the TestJCJob and TestSPJob classes

Instance Methods [hide private]
 
is_done(self)
Check whether the job is in a final status and the workup can be run.
 
duration(self)
 
exit_status(self)
Returns an exit status from the list of available Jobcontrol exit statuses.
 
test_id(self)
 
setupTestEnvironment(self)
Set environment variables used during testing.
 
infoStatus(self, status)
 
debugStatus(self, status)
 
warnStatus(self, status)

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

is_done(self)

 

Check whether the job is in a final status and the workup can be run. Implemented as a property to provide consistent interface with TestSPJob

Decorators:
  • @property

duration(self)

 
Decorators:
  • @property

exit_status(self)

 

Returns an exit status from the list of available Jobcontrol exit statuses.

  • For TestJCJobs this comes from job.ExitStatus, which will return a Jobcontrol exit status (from Job.pm in MMSHARE_EXEC) if a job object (i.e. schrodinger.job.jobcontrol.job) is found. If a job object is not found, it could be because the job is not started or it failed to launch. These special cases are handled by setting the initial exit status to "Job not started" and resetting it to "Falied to launch" if the job fails to launch (see TestJCJob.docommand).
  • For TestSPJobs a we limit the available exit statuses to "died" and "finished" because there is no job object (i.e. schrodinger.job.jobcontrol.job) associated with TestSPJobs. Like TestJCJobs the initial exit status is set to "Job not started" and is reset it to "Failed to launch" if the job fails to launch (see TestSPJob.docommand).
Decorators:
  • @property

test_id(self)

 
Decorators:
  • @property

setupTestEnvironment(self)

 

Set environment variables used during testing.

SCHRODINGER_LICENSE_CHECKOUTS to a file in the directory: SHARED-2727 SCHRODINGER_STU_TEST_ID to current test. (SHARED-3352) Remove TOPLEVEL_HOST_ARGS for Jaguar. (SHARED-4089)

Decorators:
  • @contextlib.contextmanager