Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/cacl/test_cacl_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def clean_scale_rules(duthosts, enum_rand_one_per_hwsku_hostname, collect_ignore
# delete the tmp file
duthost.file(path=SCALE_ACL_FILE, state='absent')
logger.info("Reload config to recover configuration.")
config_reload(duthost, safe_reload=True, check_intf_up_ports=True)
config_reload(duthost, safe_reload=True, check_intf_up_ports=True, wait_for_bgp=True)


@pytest.fixture(scope="function")
Expand Down
4 changes: 4 additions & 0 deletions tests/common/plugins/memory_utilization/memory_utilization.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def check_memory_thresholds(self, current_values, previous_values):

increase = current_value - previous_value
if increase > increase_threshold:
#If threshold type is percentage,
#Express increase value in percentage instead of MB
if increase_threshold_raw['type'] == 'percentage':
increase = (increase * 100)/current_value
self._handle_memory_threshold_exceeded(
name, mem_item, increase, increase_threshold_raw,
previous_values, current_values, is_increase=True
Expand Down
Loading