support/run-tests: check for empty sequences in a pythonic way
authorYegor Yefremov <yegorslists@googlemail.com>
Thu, 13 Feb 2020 10:09:06 +0000 (11:09 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 16 Feb 2020 14:38:03 +0000 (15:38 +0100)
commitea31dc1cd4b3cd660831635cf60bf94f5d76e105
tree2a6b4ac53559e57aae6624970cd1b7cb98bb567f
parentdc43b918ec76289f58463868a0295ffd78a01440
support/run-tests: check for empty sequences in a pythonic way

According to PEP8 empty sequences should be checked as booleans.

Fixes the following PEP8 warning:
Do not use `len(SEQUENCE)` to determine if a sequence is empty

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/testing/run-tests