forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Python 3 syntax errors in sonic.py (sonic-net#10107)
* Fix Python 3 syntax errors in sonic.py This file is used with the advanced-reboot test case with SONiC neighbors. Signed-off-by: Saikrishna Arcot <[email protected]> * Raise exceptions from the VM threads as failures in warm-reboot If there's some exception that happens from the VM thread, raise this as a failure in the overall warm reboot. This has two purposes: to make any failures more clearer/easier to find when debugging, and to make sure that the test fails if something goes wrong there, even if the warm reboot itself succeeded. Signed-off-by: Saikrishna Arcot <[email protected]> * Remove whitespace Signed-off-by: Saikrishna Arcot <[email protected]> * Log output on stderr as well Signed-off-by: Saikrishna Arcot <[email protected]> * For SONiC neighbors, in neigh_lag_status_check, use existing info in cli_info In the neigh_lag_status_check function, when the neighbor device is checked to see if there were any LAG flaps, instead of trying to get this information from the neighbor VM, just use the existing info we have in self.cli_info already. Otherwise, LAG flaps that may have happened prior to the test starting would show up here. Signed-off-by: Saikrishna Arcot <[email protected]> * Read stdout first, before reading stderr, since the buffer might be full Signed-off-by: Saikrishna Arcot <[email protected]> --------- Signed-off-by: Saikrishna Arcot <[email protected]>
- Loading branch information
1 parent
c0dfecb
commit 033aed2
Showing
2 changed files
with
49 additions
and
14 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