From 99a203b8e05f04b0fb5d23181ab06bf317450520 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 6 Sep 2017 14:08:53 -0700 Subject: [PATCH] Catch RHBZ #1314991 and handle it, with a soft failure We can deal with this annoying bug by looking out for the error we see when it happens, hitting the 'refresh' button again, and resetting the loop counter to 1 (requires changing the loop to a C-style loop). --- .../desktop_package_tool_update_bz1314991.json | 16 ++++++++++++++++ .../desktop_package_tool_update_bz1314991.png | Bin 0 -> 16105 bytes tests/desktop_update_graphical.pm | 12 ++++++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 needles/gnome/desktop_package_tool_update_bz1314991.json create mode 100644 needles/gnome/desktop_package_tool_update_bz1314991.png diff --git a/needles/gnome/desktop_package_tool_update_bz1314991.json b/needles/gnome/desktop_package_tool_update_bz1314991.json new file mode 100644 index 00000000..1b0fe0d2 --- /dev/null +++ b/needles/gnome/desktop_package_tool_update_bz1314991.json @@ -0,0 +1,16 @@ +{ + "tags": [ + "DESKTOP-gnome", + "desktop_package_tool_update_bz1314991" + ], + "properties": [], + "area": [ + { + "xpos": 455, + "ypos": 344, + "width": 114, + "height": 114, + "type": "match" + } + ] +} \ No newline at end of file diff --git a/needles/gnome/desktop_package_tool_update_bz1314991.png b/needles/gnome/desktop_package_tool_update_bz1314991.png new file mode 100644 index 0000000000000000000000000000000000000000..5336c81c2a739a58c0e772b99cb994deaaed3e92 GIT binary patch literal 16105 zcmdseXIPV4ll_ns)1RJO{MJZARL{NI~Bpwx%>H+ChkluSIN|g@M z3851@NC_c|Z3K;>?k$h} zFA^H}?(qaQ^3SDS{P^+3NW_?RYY{(=8F%ezlS8=`pUapTuS2-NJNjzn^DArauH^ZB z?!BU7-PTaCqUKkL^IpMS@iL;WFMJ&5ySCyh9i8isJ-C|sN#j5JV?c8mz3$_hZ&=GL zp!-B$e}6Viz4^Xr@B*|qc4%P-6FqJSY|*p zSohFwPZ`{#3HHFMXxrP{mylYwmE<@7k{lr{`)r0K%C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xdnmLwo67kpEW1-pnc8%nxZWf85VAP(%3{c8*9nQOh5x{WHXhbnCM z*l%V~od?979aPsF;qjm(>TD~X~Ryvg30%|&vU$m@8+)%uuOc~jjDIrxfqT6 zB09lcasEHJUUYmYID7K~*CTy-wPvT3*Ve|Glzb8#X0e;hp!Y=MM+}|qSc$M8N2k7{ zOvfEpF2^*GeJq&`^@~90Rb-TWnTm^`{`x3CVa%hU8_d91g@VyY)k-!1c9fuU`hKJJ`;wpUxj|Op|Jl3}#9;aP2SB(`;dD(oA53&MRen!|X z<3HS5g$regF%)2_k}7!%#rPE3!NaAC45CGkEwv670^3QbdTZQXdm>-bOLrp4V8?;XoI z>vB`%zYZQoq{x2|fGOpU&|Cp1?;|A@6pVZV$hlNP=mF-&w694_n)FKx`K<7%~vDC!n7a@<0){_R4|8g%`Mz-{lgX1<5W)eNxc}WILbgztq`bqMSw5BlXYgS+SWy1(qns2 z_J5vxEA4*k_dN%9B#tSVT**jDu)JcsrY;FS7 z4wp{zxsl&{qeT_h+4{kzuD3PCQ0`8c^sDWt1slLj8FRM)W2pc^ah}VnsG~xs>+4O% z%c`#kNWZX<0nnv?Z+rAy;x}SeI`zsL>mO5{SLA8FsCaqJct0rThn=jR z46yGY}Kn?s`BB;G(&4vua|rPW zbfE$t08sz@0T>8Upmg}B55F}!rSWf#e$e>8u!-AXqTe~+gT}vgzLdu2!RNQ8K~OsU z)-=DpiSu9v1o-?nPxD)w_%EInVCesEyyZWiCiokfq3pTlu#K=@3FUC_-&MPlck9`o F{{sWu`BVS^ literal 0 HcmV?d00001 diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 80fe5d79..2791091e 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -41,8 +41,16 @@ sub run { assert_and_click 'desktop_package_tool_update'; # refresh updates assert_and_click 'desktop_package_tool_update_refresh', '', 120; - # wait for refresh, then apply updates - for my $n (1..5) { + # wait for refresh, then apply updates, using a C-style loop so we + # can reset it if needed due to RHBZ #1314991 + for (my $n = 1; $n < 6; $n++) { + # Check if we see the 'cancelled by user action' error we get + # when #1314991 happens, if so, refresh and restart the loop + if (check_screen 'desktop_package_tool_update_bz1314991', 1) { + record_soft_failure "RHBZ #1314991 (background PK operation interfered with update)"; + assert_and_click 'desktop_package_tool_update_refresh'; + $n = 1; + } last if (check_screen 'desktop_package_tool_update_apply', 120); mouse_set 10, 10; mouse_hide;