FrontPage 

Fuego 1.0 wiki

Login or create account

function test cleanup in 'raw' format

= NAME =
test_cleanup

= SYNOPSIS =
test_cleanup

= 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 [[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).

= 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 =
Returns non-zero on error.

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

= SEE ALSO =
 * [[function_kill_procs|kill_procs]], [[function_post_test|post_test]]





TBWiki engine 1.8.3 by Tim Bird