tc-testing: unbreak full listing of tdc testcases
authorDavide Caratti <dcaratti@redhat.com>
Mon, 9 Dec 2019 16:58:52 +0000 (17:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Dec 2019 22:44:31 +0000 (14:44 -0800)
commit991a34593bad5047420d281737b074cc6f821af4
tree3ecc51e0693c0bc37429f41d0ae8dd7641f37bc9
parenta288f105a03a7e0e629a8da2b31f34ebf0343ee2
tc-testing: unbreak full listing of tdc testcases

the following command currently fails:

 [root@fedora tc-testing]# ./tdc.py -l
 The following test case IDs are not unique:
 {'6f5e'}
 Please correct them before continuing.

this happens because there are two tests having the same id:

 [root@fedora tc-testing]# grep -r 6f5e tc-tests/*
 tc-tests/actions/pedit.json:        "id": "6f5e",
 tc-tests/filters/basic.json:        "id": "6f5e",

fix it replacing the latest duplicate id with a brand new one:

 [root@fedora tc-testing]# sed -i 's/6f5e//1' tc-tests/filters/basic.json
 [root@fedora tc-testing]# ./tdc.py -i

Fixes: 4717b05328ba ("tc-testing: Introduced tdc tests for basic filter")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/filters/basic.json