FrontPage 

Fuego 1.0 wiki

Login

function test cleanup in split format

NAME [edit section]

= NAME =
test_cleanup

SYNOPSIS [edit section]

= SYNOPSIS =
test_cleanup

DESCRIPTION [edit section]

= DESCRIPTION =
This function is defined in the base test script for a test, and executes
commands to clean up after the test.  Note that Fuego will perform some cleanup
automatically, such as removing the test directory, and any log files or tmp
directories that it created.  This function is optional, and is used
to kill outstanding (still-running) processes.
This function, when defined, commonly calls kill_procs to kill any functions which the test might have left running (for example, if the test was interrupted by a timeout, or failed in some other way).
This function, when defined, commonly calls [[function_kill_procs|kill_procs]]
to kill any functions which the test might have left running (for example, 
if the test was interrupted by a timeout, or failed in some other way).
This function can also be used for any other post_test processing that is specific to an individual test. This could include things such as restoring device configurations, unmounting filesystems, cleaning up other areas of the filesystem that the test may have affected (outside those in the test directory or temp directories that Fuego manages).
This function can also be used for any other post_test processing that is
specific to an individual test.  This could include things such as
restoring device configurations, unmounting filesystems, cleaning up other
areas of the filesystem that the test may have affected (outside those
in the test directory or temp directories that Fuego manages).

EXAMPLES [edit section]

= EXAMPLES =
Here are some sample contents
{{{#!YellowBox
function test_cleanup {
    kill_procs interbench
}
}}}
{{{#!YellowBox
function test_cleanup {
    kill_procs lmbench lat_mem_rd par_mem
}
}}}
= ENVIRONMENT and ARGUMENTS =
This function takes no arguments.

RETURN [edit section]

= RETURN =
Returns non-zero on error.

SOURCE [edit section]

= SOURCE =
Located in the base script for each test.  The base test scripts are located in /fuego-core/engine/tests/<test_name>

SEE ALSO [edit section]

kill_procs, post_test
= SEE ALSO =
 * [[function_kill_procs|kill_procs]], [[function_post_test|post_test]]
TBWiki engine 1.9.2 by Tim Bird