support/testing: fix python syntax
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 3 Jun 2018 09:08:21 +0000 (11:08 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 10 Jun 2018 13:56:25 +0000 (15:56 +0200)
commit99723554c0c84002c25e98eb187fa667abee4ced
treea52bfef0dc46d4bde1d260515d29d981c4060146
parenta1f4421cc7d6c4c1a7678bcca477ac311d0b4116
support/testing: fix python syntax

Fix three issues with code style in our test infra:
  - 'print' is now a function,
  - exceptions need to be caught-assigned with the 'as' keyword,
  - old-style "%s"%() formatting is deprecated.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com>
[Thomas: drop indices in format strings.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/infra/__init__.py
support/testing/infra/basetest.py
support/testing/run-tests