mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-29 08:26:27 +00:00
09c264fe16
Summary: As we're getting the Workstation dvd-ostree (OStree installer image) built for Rawhide now, let's try testing it. Test Plan: Run the tests on a Rawhide compose that works and has the image (e.g. 20170615.n.0). Check that new tests work as expected and old tests are not adversely affected. A corresponding diff for fedora_openqa will be coming to take care of scheduling. Note that the tests will often soft fail for now; this is intentional due to RHBZ#1193590, the bash prompt for root is incorrect on ostree installs, so I have added a needle that matches the incorrect prompt but which is flagged as a workaround needle (so causing the test result to be a soft fail). Reviewers: jsedlak, jskladan Reviewed By: jsedlak Subscribers: tflink Differential Revision: https://phab.qa.fedoraproject.org/D1211
29 lines
801 B
Perl
29 lines
801 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';
|
|
unless (get_var("CANNED")) {
|
|
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 {
|
|
return { 'ignore_failure' => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|