collect_data: run top *before* everything else

Committing without review as this is pretty trivial. Running
top *after* all the other collect_data tasks leads to some
meaningless fluctuations in the output; I intended to look for
activity caused by stuff running 'as usual', not activity from
the other collect_data tasks.
This commit is contained in:
Adam Williamson 2016-12-02 15:01:40 -08:00
parent b76da0452f
commit 6f90ff0143
1 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,8 @@ use testapi;
sub run {
my $self = shift;
$self->root_console(tty=>3);
assert_script_run 'top -i -n20 -b > /var/tmp/top.log';
upload_logs '/var/tmp/top.log';
assert_script_run 'rpm -qa --queryformat "%{NAME}\n" | sort -u > /var/tmp/rpms.log';
upload_logs '/var/tmp/rpms.log';
assert_script_run 'free > /var/tmp/free.log';
@ -13,8 +15,6 @@ sub run {
upload_logs '/var/tmp/df.log';
assert_script_run 'systemctl -t service --no-pager |grep -o ".*\.service" > /var/tmp/services.log';
upload_logs '/var/tmp/services.log';
assert_script_run 'top -i -n20 -b > /var/tmp/top.log';
upload_logs '/var/tmp/top.log';
}
sub test_flags {