From 235377708f966cae53d678b4b9ea3c80f0dfe151 Mon Sep 17 00:00:00 2001 From: Garret Raziel Date: Fri, 13 Feb 2015 15:08:29 +0100 Subject: [PATCH] beginning of test logging --- lib/anacondalog.pm | 22 ++++++++++++++++++++++ needles/anaconda_console.json | 25 +++++++++++++++++++++++++ needles/anaconda_console.png | Bin 0 -> 392 bytes tests/disk_guided_delete_all.pm | 2 +- 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 lib/anacondalog.pm create mode 100644 needles/anaconda_console.json create mode 100644 needles/anaconda_console.png 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 0000000000000000000000000000000000000000..b31f7fc7a928a7da55f16059eea361a357efe80f GIT binary patch literal 392 zcmeAS@N?(olHy`uVBq!ia0y~yU;#3j85o&?R6|L-ACO`T@Ck7R(yLaj5>Bpv!@$63 z>*?YcQgQ3;CEdKk1`-X4*$F2S3>LI=tl}z~p|JSTiU-WrQ4<6E0(_khTOZhR_GN!r z)6xa!nctk}tW33B+HM}R?QCVO=k9Iq?oEIB?fL$%({7?>Wn&es5oQ?T&8nsqDKBQ!K6-xob^t zNG@60SNrN3*NoG9Sk7ebVLPLnaDDsgo$d!-N=^7}vhFKel*3-uoc_1GI*g^W`?T*K zFqo>j$S3$$&y6DjhP?8*Uh5Cr6_(rc%L9E%LtxVsUu}^1a#8U#eUL4lu6{1-oD!M< D*xiBN literal 0 HcmV?d00001 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;