Skip to the content.

Untitled object in spack schema version Schema

spack.schema.json#/properties/status

The status section describes how buildtest detects PASS/FAIL on test. By default returncode 0 is a PASS and anything else is a FAIL, however buildtest can support other types of PASS/FAIL conditions.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Forbidden none spack.schema.json*

status Type

object (Details)

status Properties

Property Type Required Nullable Defined by
slurm_job_state string Optional cannot be null JSON Schema Definitions File.
pbs_job_state string Optional cannot be null JSON Schema Definitions File.
lsf_job_state string Optional cannot be null JSON Schema Definitions File.
returncode Merged Optional cannot be null JSON Schema Definitions File.
regex object Optional cannot be null JSON Schema Definitions File.
runtime object Optional cannot be null JSON Schema Definitions File.
state string Optional cannot be null JSON Schema Definitions File.

slurm_job_state

This field can be used to pass test based on Slurm Job State, if there is a match buildtest will report as PASS

slurm_job_state

slurm_job_state Type

string

slurm_job_state Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"COMPLETED"  
"FAILED"  
"OUT_OF_MEMORY"  
"TIMEOUT"  

pbs_job_state

This field can be used to pass test based on PBS Job State, if there is a match buildtest will report as PASS

pbs_job_state

pbs_job_state Type

string

pbs_job_state Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"H"  
"S"  
"F"  

lsf_job_state

This field can be used to pass test based on LSF Job State, if there is a match buildtest will report as PASS

lsf_job_state

lsf_job_state Type

string

lsf_job_state Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"DONE"  
"EXIT"  

returncode

Specify a list of returncodes to match with script’s exit code. buildtest will PASS test if script’s exit code is found in list of returncodes. You must specify unique numbers as list and a minimum of 1 item in array

returncode

returncode Type

merged type (Details)

one (and only one) of

regex

Perform regular expression search using re.search python module on stdout/stderr stream for reporting if test PASS.

regex

regex Type

object (Details)

runtime

The runtime section will pass test based on min and max values and compare with actual runtime.

runtime

runtime Type

object (Details)

state

explicitly mark state of test regardless of status calculation

state

state Type

string

state Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"PASS"  
"FAIL"