mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-22 10:23:09 +00:00
5572a73f61
Reasoning: 1. pandoc is not in critpath so will not itself be tested 2. pandoc is widely used and actively maintained 3. package is noarch 4. package has minimal deps Hopefully this will work for everything. For some reason, the "use python3-blivet for pykickstart tests" fails mysteriously sometimes, see e.g. https://openqa.stg.fedoraproject.org/tests/2672282 Signed-off-by: Adam Williamson <awilliam@redhat.com>
33 lines
1.0 KiB
Perl
33 lines
1.0 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use packagetest;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# switch to TTY3 for both, graphical and console tests
|
|
$self->root_console(tty => 3);
|
|
# enable test repos and install test packages
|
|
prepare_test_packages;
|
|
# check rpm agrees they installed good
|
|
verify_installed_packages;
|
|
# update the fake pandoc-common (should come from the real repo)
|
|
# this can take a long time if we get unlucky with the metadata refresh
|
|
assert_script_run 'dnf -y --disablerepo=openqa-testrepo* --disablerepo=updates-testing update pandoc-common', 600;
|
|
# check we got the updated version
|
|
verify_updated_packages;
|
|
# now remove pandoc-common, and see if we can do a straight
|
|
# install from the default repos
|
|
assert_script_run 'dnf -y remove pandoc-common';
|
|
assert_script_run 'dnf -y --disablerepo=openqa-testrepo* --disablerepo=updates-testing install pandoc-common', 120;
|
|
assert_script_run 'rpm -V pandoc-common';
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|