Parser_module_API 

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 executescommands to clean up after the test.  Note that Fuego will perform some cleanupautomatically, such as removing the test directory, and any log files or tmpdirectories that it created.  This function is optional, and is usedto kill outstanding (still-running) processes.
This function, when defined, commonly calls kill_procsto 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 isspecific to an individual test. This could include things such asrestoring device configurations, unmounting filesystems, cleaning up otherareas of the filesystem that the test may have affected (outside thosein the test directory or temp directories that Fuego manages).
This function can also be used for any other post_test processing that isspecific to an individual test.  This could include things such asrestoring device configurations, unmounting filesystems, cleaning up otherareas of the filesystem that the test may have affected (outside thosein the test directory or temp directories that Fuego manages).

EXAMPLES [edit section]

= EXAMPLES =Here are some sample contents
{{{#!YellowBoxfunction test_cleanup {    kill_procs interbench}}}}
{{{#!YellowBoxfunction 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.3 by Tim Bird