Fuego wiki

Login or create account

function dump syslogs

NAME [edit section]


SYNOPSIS [edit section]

  • dump_syslogs <tmp_dir> "before"|"after"

DESCRIPTION [edit section]

Save the current system log, on the target.

There are two syslogs saved, one before the test and one after. By subtracting these two from each other, one can tell what system log operations occurred during the execution of the test.

This function uses ov_rootfs_logread to save the system log in the /tmp directory on the target.

EXAMPLES [edit section]

Here are some sample invocations:
        dump_syslogs ${fuego_test_tmp} before

ENVIRONMENT and ARGUMENTS [edit section]

  • $1 is a temp dir on the target - the location where the log should be saved
  • $2 specifies which syslog to retrieve (either the 'before' syslog or the 'after' syslog).

Note that post_test may use the value of FUEGO_TARGET_TMP to set the value for $1 ($test_temp_dir).

RETURN [edit section]

Returns non-zero on error.

SOURCE [edit section]

Located in scripts/

SEE ALSO [edit section]

TBWiki engine 1.8.2 by Tim Bird