function post test

NAME [edit section]

post_test

SYNOPSIS [edit section]

post_test $TESTDIR

DESCRIPTION [edit section]

This function does the post-processing phase of the test. This includes retrieving the test logs, and cleaning up after the test by killing any outstanding processes and removing the test and log directories.

It may be called via a separate invocation by the Jenkins job, or by ftc, or by a trap handler in the base script. It is called after the test has finished (or after it has been interrupted).

Because it may be called in a new context, it needs to re-setup the functions and environment from the test. It does this by source-ing the _prolog.sh file that was generated when the test was run, and the params.sh file.

A rough sequence of actions that are performed is:

EXAMPLES [edit section]

Here are some sample invocations:

When called from Jenkins or ftc context (outside of the regular base script):

ENVIRONMENT and ARGUMENTS [edit section]

This function takes the following arguments:

This function uses the following variables:

RETURN [edit section]

Returns non-zero on error.

SOURCE [edit section]

Located in scripts/functions.sh

SEE ALSO [edit section]