]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster-tests: fix erroneous message when test fails
authorElliot Smith <elliot.smith@intel.com>
Fri, 15 Jul 2016 11:09:57 +0000 (12:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 23:08:17 +0000 (00:08 +0100)
commit34943b2278efe99c6744399e04a47cdda630468e
tree5f4405b7137e6e14af060ed12f7a309c163c6839
parentb95681cf38475903ad4f73059313dda8c0dccef6
toaster-tests: fix erroneous message when test fails

When one of the layer details tests fails (as it occasionally
does, if running on a machine under heavy load, due to sync issues),
the error message shown is misleading, as it is something like:

"Expected 'This was imported' in ['This was imported', ...]"

The string 'This was imported' is in the list shown in the message,
but the message suggests it isn't.

This is because the test compares the string with one list, but
then uses a different list in the fail message if the comparison
fails.

Fix the list shown in the message about the test failing.

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
lib/toaster/tests/browser/test_layerdetails_page.py