1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-18 12:33:09 +00:00
os-autoinst-distri-fedora/tests/mediakit_fileconflicts.pm
Adam Williamson 78dd42b876 Automate two 'mediakit' tests (repoclosure and file conflicts)
We can run these tests much like support_server - have a test
which boots from the support_server disk image but with the ISO
to be tested attached, then mounts it and runs the scripts.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-07-04 13:44:20 -07:00

27 lines
768 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
# create a mount point for the ISO
assert_script_run "mkdir -p /mnt/iso";
# mount the ISO there
assert_script_run "mount /dev/cdrom /mnt/iso";
# download the check script
assert_script_run "curl -o /usr/local/bin/potential_conflict.py https://pagure.io/fedora-qa/qa-misc/raw/master/f/potential_conflict.py";
# install python2 and yum - script needs these for now:
# https://pagure.io/fedora-qa/qa-misc/issue/4
script_run "dnf -y install yum python2", 180;
# run the check
assert_script_run "python2 /usr/local/bin/potential_conflict.py --repofrompath=media,/mnt/iso -r media";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: