diff --git a/lib/anacondalog.pm b/lib/anacondalog.pm new file mode 100644 index 00000000..bd3c8b3a --- /dev/null +++ b/lib/anacondalog.pm @@ -0,0 +1,22 @@ +package anacondalog; +use base 'basetest'; + +use testapi; + +sub post_fail_hook { + my $self = shift; + send_key "ctrl-alt-f2"; + if (check_screen "anaconda_console", 10) { + upload_logs "/tmp/X.log"; + upload_logs "/tmp/anaconda.log"; + upload_logs "/tmp/packaging.log"; + upload_logs "/tmp/storage.log"; + upload_logs "/tmp/syslog"; + upload_logs "/tmp/program.log"; + } +} + +1; + +# vim: set sw=4 et: + diff --git a/needles/anaconda_console.json b/needles/anaconda_console.json new file mode 100644 index 00000000..8a438470 --- /dev/null +++ b/needles/anaconda_console.json @@ -0,0 +1,25 @@ +{ + "tags": [ + "anaconda_console", + "ENV-DISTRI-fedora", + "ENV-INSTLANG-en_US", + "ENV-OFW-1", + "ENV-FLAVOR-server" + ], + "area": [ + { + "xpos": 0, + "ypos": 0, + "width": 121, + "height": 54, + "type": "match" + }, + { + "xpos": 194, + "ypos": 0, + "width": 35, + "height": 27, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/anaconda_console.png b/needles/anaconda_console.png new file mode 100644 index 00000000..b31f7fc7 Binary files /dev/null and b/needles/anaconda_console.png differ diff --git a/tests/disk_guided_delete_all.pm b/tests/disk_guided_delete_all.pm index d04b8e82..5129b960 100644 --- a/tests/disk_guided_delete_all.pm +++ b/tests/disk_guided_delete_all.pm @@ -1,4 +1,4 @@ -use base "basetest"; +use base "anacondalog"; use strict; use testapi;