From b8e011e2ff71c8d79e79f2dfb479ca11399a6b30 Mon Sep 17 00:00:00 2001 From: Garret Raziel Date: Wed, 11 Mar 2015 16:35:54 +0100 Subject: [PATCH] wait for Password: prompt --- needles/password_required.json | 18 ++++++++++++++++++ needles/password_required.png | Bin 0 -> 958 bytes tests/_wait_for_login_screen.pm | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 needles/password_required.json create mode 100644 needles/password_required.png diff --git a/needles/password_required.json b/needles/password_required.json new file mode 100644 index 00000000..5d884ccb --- /dev/null +++ b/needles/password_required.json @@ -0,0 +1,18 @@ +{ + "tags": [ + "password_required", + "ENV-DISTRI-fedora", + "ENV-INSTLANG-en_US", + "ENV-FLAVOR-server" + ], + "area": [ + { + "xpos": 0, + "ypos": 79, + "width": 72, + "height": 21, + "type": "match" + } + ], + "properties": [] +} \ No newline at end of file diff --git a/needles/password_required.png b/needles/password_required.png new file mode 100644 index 0000000000000000000000000000000000000000..32a1cdd17cbd42cc1a101fd25842f50ac8d8d391 GIT binary patch literal 958 zcmeAS@N?(olHy`uVBq!ia0y~yU;#3j85o&?R6|L-ACO`T@Ck7R(yLaj5>Bpv1C%cI zba4!+xb^nN#x5;Sk@k=ECV{MN>Jw_)x|TH8%}9#u;_Z=cKD_66?QEupE@$@~II&^k z#)}&ow@6!@+PmQ(+pWC@_w_&Zu+6s(E4?Vhz;Ix@d1h_xMbAlhrs_=!yX1Pxm?dQC zYwpP^t|#uProR09ZTs_If3G)87k?^$y+MB0-mf9`Rqxy9^5yL-4);2>?fYTNlN$(^t%%5S!GOTJhD4{Kplx+$uX`^iHZq@AR2_NA>-cyY&;UE3OUO)V}sY)n3u{qFk*@ zCg`+V<%%l021eeutC7`7Fa7qQ;h)?GCC&D-U(WjaK_*-O$z8Zo^>ohG>KjIPe?5G# zZ0)@-%gkkMGGCm_Hxl*t{GE{%{nK&x;oK9?i*FoeDl@!d(EIB`yPZi(=9WK-mo?9X z{9W^T#R{*lW>4nGOB!6YnyFU%>hss&t*O1!>{GRL)4vLKc?LfHYGz}WaN8?)*^m5wCOFfkfc+M}e)~%dh z<21{X^$gJp3T~?fXU}IcD`xxh&bhuMes%f#)g?vo`dhX2{&m#FSS6^}xW}8%I~sQH zYvJEX+8@Lcx>?`c`Cj)zocn{w#{R_JH})^6(EPpPbZ%4Xn_b^EyxEp~kxSk3lu1d? vn{5u;_gBjsb$`}B`1BT(9R>~@F#pPLJ)!ND$SdvnAXj+0`njxgN@xNA)vJ@X literal 0 HcmV?d00001 diff --git a/tests/_wait_for_login_screen.pm b/tests/_wait_for_login_screen.pm index 91ba115b..11591b99 100644 --- a/tests/_wait_for_login_screen.pm +++ b/tests/_wait_for_login_screen.pm @@ -20,6 +20,7 @@ sub run { { type_string get_var("USER_LOGIN"); send_key "ret"; + assert_screen "password_required", 10; type_string get_var("USER_PASSWORD"); send_key "ret"; assert_screen "user_logged_in", 10; @@ -38,6 +39,7 @@ sub run { type_string "root"; send_key "ret"; } + assert_screen "password_required", 10; type_string get_var("ROOT_PASSWORD"); send_key "ret"; assert_screen "root_logged_in", 10;