"I see the Unsafe Browser start notification and wait for it to close" step is fragile
Video attached. Debug log:
Scenario: Closing the I2P Browser shows a stop notification and properly tears down the chroot. # features/i2p.feature:30
calling as root: echo 'hello?'
call returned: [0, "hello?\n", ""]
[log] CLICK on (1024,384)
calling as root: /sbin/ifconfig eth0 | grep -q 'inet addr'
call returned: [0, "", ""]
calling as root: systemctl --quiet is-active tor@default.service
call returned: [0, "", ""]
calling as root: systemctl stop tor@default.service
call returned: [0, "", ""]
calling as root: rm -f /var/log/tor/log
call returned: [0, "", ""]
calling as root: systemctl --no-block restart tails-tor-has-bootstrapped.target
call returned: [0, "", ""]
calling as root: date -s '@1463916884'
call returned: [0, "Sun May 22 11:34:44 UTC 2016\n", ""]
spawning as root: restart-tor
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [1, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [3, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [3, "", ""]
calling as root: /usr/local/sbin/tor-has-bootstrapped
call returned: [0, "", ""]
calling as root: cat /proc/cmdline
call returned: [0, "BOOT_IMAGE=/live/vmlinuz2 initrd=/live/initrd2.img boot=live config live-media=removable apparmor=1 security=apparmor nopersistence noprompt timezone=Etc/UTC block.events_dfl_poll_msecs=1000 splash noautologin module=Tails slab_nomerge slub_debug=FZ mce=0 vsyscall=none quiet autotest_never_use_this_option blacklist=psmouse i2p\n", ""]
calling as root: /usr/local/sbin/tails-i2p stop
call returned: [0, "", ""]
calling as root: killall tails-i2p
call returned: [0, "", ""]
spawning as root: /usr/local/sbin/tails-i2p start
Given I have started Tails from DVD with I2P enabled and logged in and the network is connected # features/step_definitions/snapshots.rb:199
calling as root: . /usr/local/lib/tails-shell-library/i2p.sh && i2p_router_console_is_ready
call returned: [1, "", ""]
calling as root: . /usr/local/lib/tails-shell-library/i2p.sh && i2p_router_console_is_ready
call returned: [1, "", ""]
calling as root: . /usr/local/lib/tails-shell-library/i2p.sh && i2p_router_console_is_ready
call returned: [1, "", ""]
calling as root: . /usr/local/lib/tails-shell-library/i2p.sh && i2p_router_console_is_ready
call returned: [0, "", ""]
And the I2P router console is ready # features/step_definitions/i2p.rb:17
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.QUDDuSzccq\n", ""]
calling as root: rm -f '/tmp/tmp.QUDDuSzccq'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Applications'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.QUDDuSzccq'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.QUDDuSzccq'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.QUDDuSzccq_20160522-113457_debug ...\nClicking on [label | Applications]\nMouse button 1 click at (47,13)\n", ""]
calling as root: rm -f '/tmp/tmp.QUDDuSzccq'
call returned: [0, "", ""]
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.5e2EczP8jW\n", ""]
calling as root: rm -f '/tmp/tmp.5e2EczP8jW'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'Internet'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.5e2EczP8jW'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.5e2EczP8jW'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.5e2EczP8jW_20160522-113501_debug ...\nClicking on [label | Internet]\nMouse button 1 click at (59,166)\n", ""]
calling as root: rm -f '/tmp/tmp.5e2EczP8jW'
call returned: [0, "", ""]
calling as amnesia: mktemp
call returned: [0, "/tmp/tmp.Qb6zfFB0Aq\n", ""]
calling as root: rm -f '/tmp/tmp.Qb6zfFB0Aq'
call returned: [0, "", ""]
calling as amnesia: echo '#!/usr/bin/python
from dogtail import tree
from dogtail.config import config
config.searchShowingOnly = True
application = tree.root.application('"'"'gnome-shell'"'"')
application.child('"'"'I2P Browser'"'"', roleName='"'"'label'"'"').click()' >> '/tmp/tmp.Qb6zfFB0Aq'
call returned: [0, "", ""]
calling as amnesia: /usr/bin/python '/tmp/tmp.Qb6zfFB0Aq'
call returned: [0, "Creating logfile at /tmp/dogtail-amnesia/logs/tmp.Qb6zfFB0Aq_20160522-113505_debug ...\nClicking on [label | I2P Browser]\nMouse button 1 click at (298,160)\n", ""]
calling as root: rm -f '/tmp/tmp.Qb6zfFB0Aq'
call returned: [0, "", ""]
[log] CLICK on (1007,762)
[profile] Finder.findAll START
[profile] Finder.findAll END: 72ms
[log] CLICK on (991,697)
[log] CLICK on (991,697)
[log] CLICK on (925,697)
[log] CLICK on (925,697)
[log] CLICK on (859,697)
[profile] Finder.findAll START
[profile] Finder.findAll END: 316ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 245ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 233ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 234ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 252ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 235ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 230ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 235ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 246ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 238ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 261ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 237ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 265ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 318ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 284ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 247ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 286ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 232ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 235ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 302ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 237ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 240ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 307ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 239ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 243ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 237ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 264ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 235ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 323ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 274ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 236ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 239ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 235ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 327ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 294ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 321ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 276ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 240ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 292ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 240ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 252ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 359ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 253ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 241ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 243ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 239ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 241ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 243ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 242ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 313ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 279ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 276ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 299ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 302ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 331ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 298ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 302ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 241ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 308ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 302ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 238ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 287ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 258ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 275ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 263ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 244ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 233ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 232ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 235ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 253ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 237ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 256ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 241ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 250ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 259ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 283ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 306ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 265ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 291ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 321ms
When I successfully start the I2P Browser # features/step_definitions/browser.rb:18
Didn't not see notification 'I2PBrowserStartNotification.png'
Last ignored exception was: FindFailed: can not find GnomeNotificationEntry.png on the screen. (Timeout::Error)
./features/support/helpers/misc_helpers.rb:83:in `rescue in try_for'
./features/support/helpers/misc_helpers.rb:33:in `try_for'
./features/step_definitions/common_steps.rb:68:in `robust_notification_wait'
./features/step_definitions/browser.rb:2:in `/^I see the (Unsafe|I2P) Browser start notification and wait for it to close$/'
./features/step_definitions/browser.rb:21:in `/^I successfully start the (Unsafe|I2P) Browser$/'
features/i2p.feature:33:in `When I successfully start the I2P Browser'
And I close the I2P Browser # features/step_definitions/browser.rb:25
Then I see the I2P Browser stop notification # features/step_definitions/browser.rb:29
And the I2P Browser chroot is torn down # features/step_definitions/browser.rb:178
[profile] Finder.findAll START
[profile] Finder.findAll END: 244ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 239ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 318ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 275ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 260ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 239ms
[profile] Finder.findAll START
[profile] Finder.findAll END: 260ms
Scenario failed at time 00:39:17
Screenshot: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-10381-fix-i-open-the-address-test-is-fragile/15/artifact/build-artifacts/00:39:17_Closing_the_I2P_Browser_shows_a_stop_notification_and_properly_tears_down_the_chroot..png
Video: https://jenkins.tails.boum.org/job/test_Tails_ISO_test-10381-fix-i-open-the-address-test-is-fragile/15/artifact/build-artifacts/00:39:17_Closing_the_I2P_Browser_shows_a_stop_notification_and_properly_tears_down_the_chroot..mkv
Feature Branch: wip/test/11458-browser-start-notification-is-fragile
Attachments
Parent Task: #10288
Original created by @intrigeri on 11458 (Redmine)