]> git.baikalelectronics.ru Git - kernel.git/commit
tc-testing: better check if thing is list
authorBrenda J. Butler <bjb@mojatatu.com>
Tue, 31 Oct 2017 18:28:35 +0000 (14:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 02:04:47 +0000 (11:04 +0900)
commit53d8c7e387f2abe033679e1a37c7e694182c0a56
treeea15f0084e827cf0d1fa159537cde468b49f02bb
parentdf7fba36baa549bd405fdcfa829275c8ddcb37fb
tc-testing: better check if thing is list

Check if tcase[k] is an instance of a list (is or is derived from list)
instead of checking if it is a list.

This will be useful if the data structures change to be something
that implements list, instead of being an actual list.  In that
case, this code will not have to change.

Signed-off-by: Brenda J. Butler <bjb@mojatatu.com>
Acked-by: Lucas Bates <lucasb@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tdc_helper.py