mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-19 01:28:30 +00:00
e9fda18016
This keeps failing because the default `assert_script_run` timeout changed from 90 to 30 in the last os-autoinst update (an unintended consequence of a change I made). This has been fixed upstream, but in the mean time, let's just set an explicit timeout on the call.
31 lines
989 B
Perl
31 lines
989 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
$self->root_console(tty=>3);
|
|
assert_script_run 'top -i -n20 -b > /var/tmp/top.log', 120;
|
|
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';
|
|
upload_logs '/var/tmp/free.log';
|
|
assert_script_run 'df > /var/tmp/df.log';
|
|
upload_logs '/var/tmp/df.log';
|
|
assert_script_run 'systemctl -t service --no-pager --no-legend | grep -o ".*\.service" > /var/tmp/services.log';
|
|
upload_logs '/var/tmp/services.log';
|
|
}
|
|
|
|
sub test_flags {
|
|
# without anything - rollback to 'lastgood' snapshot if failed
|
|
# 'fatal' - whole test suite is in danger if this fails
|
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
|
# 'important' - if this fails, set the overall state to 'fail'
|
|
return {};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|