Commit 649e487
authored
Issue 21314: Remove --enable_sflow_feature from sflow tests (#21319)
Summary:
Currently, sflow/test_sflow.py accepts a flag --enable_sflow_feature which will start the sflow feature when it is passed in. This is not necessary; if the feature is compiled in and available, then the test should enable it automatically when run, and if it was enabled by the test, we should disable it when it is finished.
Note that the test calls config reload at the end of the test anyways, so in practice it's not necessary to disable the feature after the test completes.
* remove --enable_sflow_feature from options
* unconditionally start sflow feature at start of test
* disable sflow feature at end of test if it was not enabled before1 parent dde98b7 commit 649e487
2 files changed
+16
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
204 | 214 | | |
205 | 215 | | |
206 | 216 | | |
| |||
0 commit comments