install tar in installedtest post_fail_hook

It's not always in minimal installs. This is a simple change
and needed to make the post-fail hook work for minimal installs,
so pushing without review.
This commit is contained in:
Adam Williamson 2016-10-27 17:07:20 -07:00
parent 7b31b8263e
commit 600dd39a64
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ sub post_fail_hook {
$self->root_console(tty=>6);
# We can't rely on tar being in minimal installs
assert_script_run "dnf -y install tar", 180;
# If /var/tmp/abrt directory isn't empty (ls doesn't return empty string)
my $vartmp = script_output "ls /var/tmp/abrt";
if ($vartmp ne '') {