-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tor_mux_intfs fixture and use it in dual tor mock utility (#3094)
The dual tor mock utilities needs to get the list of interfaces connected to mux cable multiple times. Each time the config_facts module is executed to get the running config. Then the list of interfaces is parsed from config facts. This is inefficient and unnecessarily generated too much log while getting config facts. This change introduced a common fixture tor_mux_intfs. The dual tor mock utility script is updated to use this new fixture. Another change is to use shell_cmds to run multiple commands in batch to save test execution time. Signed-off-by: Xin Wang <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters