Open SuvarnaMeenakshi opened 1 year ago
@SuvarnaMeenakshi are you able to update the enumeration logic to enable multi-asic, or do you need help?
Suggest to create a new combined selector, which will randomly choose a dut than randomize the asic index accordingly. Using 2 fixtures would have issue raised here.
Suggest to create a new combined selector, which will randomly choose a dut than randomize the asic index accordingly. Using 2 fixtures would have issue raised here.
We generally use two fixtures, but the combination of mapping right asic_index to the dut host selected is managed in conftest logic. This logic has to include rand_one_dut_hostname.
I will be able to work on this but might need some investigation to ensure that the changes work well for tests that use rand_one_dut_hostname fixture, I cannot take it up this month.
Description
Steps to reproduce the issue:
Describe the results you received: Any test using rand_one_dut_hostname and enum_asic_index can cause failure when accessing the asic instance of the DUT selected, if asic_instance is not present in the dut selected. one example is failure described in https://github.com/sonic-net/sonic-mgmt/pull/7617
Describe the results you expected: enum_asic_index should be generated for rand_one_dut_hostname
Additional information you deem important: