`run_test_suite --image-bumping-mode` fails sometimes: 'NoneType' object has no attribute 'shape'
My experience is with features/localization.feature:20
. Both "Automatic bump" and "Retry image" fail with this error.
It didn't do so all the times, but when it did, it did so for the entire run.
Then DuckDuckGo is the default search engine # features/step_definitions/browser.rb:307
Traceback (most recent call last):
File "/home/puz/tails/tails/features/scripts/opencv_match_template.py", line 44, in main
print(*match(sys.argv[1], sys.argv[2],
File "/home/puz/tails/tails/features/scripts/opencv_match_template.py", line 20, in match
w, h = template.shape[::-1]
AttributeError: 'NoneType' object has no attribute 'shape'
(OpenCVInternalError)
./features/support/helpers/opencv.rb:28:in `matchTemplate'
./features/support/helpers/screen.rb:114:in `match_screen'
./features/support/helpers/screen.rb:400:in `block in interactive_image_bump'
./features/support/helpers/screen.rb:368:in `loop'
./features/support/helpers/screen.rb:368:in `interactive_image_bump'
./features/support/helpers/screen.rb:434:in `rescue in block (2 levels) in <class:ImageBumpingScreen>'
./features/support/helpers/screen.rb:430:in `block (2 levels) in <class:ImageBumpingScreen>'
./features/step_definitions/browser.rb:89:in `/^I open a new tab in the (.*)$/'
./features/step_definitions/browser.rb:316:in `/^DuckDuckGo is the default search engine$/'
That's a bit annoying, because that scenario has many images.
Edited by boyska