Apply some debugging hacks for the periodic failure bug
This is all in aid of trying to figure out what's going on in https://pagure.io/fedora-qa/os-autoinst-distri-fedora/pull-request/312#comment-199540 - sometimes the upgrade process just does not work, it seems like the prepared update file gets wiped for some reason. This is all trying to figure out exactly when that happens and whether it's because we're running out of disk space. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
c9a802b761
commit
d9b7d203de
|
@ -168,6 +168,17 @@ sub post_fail_hook {
|
|||
}
|
||||
}
|
||||
|
||||
# TEST TEST FOR DEBUGGING ONLY
|
||||
if (get_var("GUI_UPGRADE")) {
|
||||
script_run "df -h";
|
||||
script_run "ls -l /var/lib/PackageKit";
|
||||
script_run "ls -l /var/lib/PackageKit/prepared-upgrade";
|
||||
$self->root_console(tty => 4);
|
||||
send_key "ctrl-c";
|
||||
upload_logs "/tmp/pk.log", failok => 1;
|
||||
}
|
||||
# END DEBUGGING
|
||||
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -71,6 +71,9 @@ sub run {
|
|||
record_soft_failure "Modular repos present! Upgrade will fail, so removing";
|
||||
assert_script_run "rm -f /etc/yum.repos.d/*modul*";
|
||||
}
|
||||
# TEST TEST FOR DEBUGGING ONLY
|
||||
assert_script_run 'sed -i -e "s,libexec/packagekitd,libexec/packagekitd --verbose,g" /usr/lib/systemd/system/packagekit.service';
|
||||
# END DEBUGGING
|
||||
# Switch to a user account
|
||||
enter_cmd("su -l $user");
|
||||
# Navigate to the version file directory
|
||||
|
|
|
@ -41,6 +41,12 @@ sub run {
|
|||
}
|
||||
# Let's check, that the desktop is shown.
|
||||
check_desktop();
|
||||
# TEST TEST FOR DEBUGGING ONLY
|
||||
$self->root_console(tty => 4);
|
||||
type_string "while true; do date -u >> /tmp/pk.log; df -h >> /tmp/pk.log; ls -l /var/lib/PackageKit >> /tmp/pk.log 2>&1; sleep 1; done\n";
|
||||
$self->root_console(tty => 3);
|
||||
desktop_vt;
|
||||
# END DEBUGGING
|
||||
|
||||
# Start the package manager application depending
|
||||
# on which DE we are on.
|
||||
|
|
Loading…
Reference in New Issue