tc-testing: add simple action test to verify batch add cleanup
Verify cleanup of failed actions batch add where second action in batch fails after successful init of first action. Signed-off-by: Vlad Buslov <vladbu@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
fbe82b3db3
Коммит
79749ae19d
|
@ -175,5 +175,35 @@
|
||||||
"teardown": [
|
"teardown": [
|
||||||
"$TC actions flush action simple"
|
"$TC actions flush action simple"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "8d07",
|
||||||
|
"name": "Verify cleanup of failed actions batch add",
|
||||||
|
"category": [
|
||||||
|
"actions",
|
||||||
|
"simple"
|
||||||
|
],
|
||||||
|
"setup": [
|
||||||
|
[
|
||||||
|
"$TC actions flush action simple",
|
||||||
|
0,
|
||||||
|
1,
|
||||||
|
255
|
||||||
|
],
|
||||||
|
"$TC actions add action simple sdata \"2\" index 2",
|
||||||
|
[
|
||||||
|
"$TC actions add action simple sdata \"1\" index 1 action simple sdata \"2\" index 2",
|
||||||
|
255
|
||||||
|
],
|
||||||
|
"$TC actions flush action simple"
|
||||||
|
],
|
||||||
|
"cmdUnderTest": "$TC actions add action simple sdata \"2\" index 2",
|
||||||
|
"expExitCode": "0",
|
||||||
|
"verifyCmd": "$TC actions list action simple",
|
||||||
|
"matchPattern": "action order [0-9]*: Simple <2>.*index 2 ref",
|
||||||
|
"matchCount": "1",
|
||||||
|
"teardown": [
|
||||||
|
"$TC actions flush action simple"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Загрузка…
Ссылка в новой задаче