Skip to content

Remove unnecessary hard coded skip scripts in run_tests.sh#2173

Merged
wangxin merged 1 commit intosonic-net:masterfrom
wangxin:fix-skip-utils
Sep 2, 2020
Merged

Remove unnecessary hard coded skip scripts in run_tests.sh#2173
wangxin merged 1 commit intosonic-net:masterfrom
wangxin:fix-skip-utils

Conversation

@wangxin
Copy link
Copy Markdown
Collaborator

@wangxin wangxin commented Sep 2, 2020

Description of PR

Summary:
Fixes # (issue)

This PR is to fix the issue introduced in PR #2146

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

What is the motivation for this PR?

Two scripts "test_announce_routes.py" and "test_nbr_health.py" are hard coded
as scripts to be skipped in run_tests.sh. This caused these two scripts are not
executed while preparing the DUT for testing.

Indeed, either "-t TOPOLOGY" or "-c TEST_CASES" must be specified in
the run_tests.sh command line arguments. When "-t TOPOLOGY" is specified,
the scripts with "utils" mark will be skipped during test execution. It's
unnecessary to specify them in the skip list. When "-c TEST_CASE" is specified,
the person running the command is responsible for the correctness of the
TEST_CASES list.

How did you do it?

Remove the two hard coded scripts to be skipped from the list:

  • test_announce_routes.py
  • test_nbr_health.py

How did you verify/test it?

Test run ./run_tests.sh -i veos_vtb -d vlab-01 -n vms-kvm-t0 -f vtestbed.csv -k debug -l warning -m individual -q 1 -a False -e --disable_loganalyzer -c 'test_interfaces.py bgp/test_bgp_fact.py bgp/test_bgp_gr_helper.py bgp/test_bgp_speaker.py cacl/test_cacl_application.py cacl/test_cacl_function.py dhcp_relay/test_dhcp_relay.py lldp/test_lldp.py ntp/test_ntp.py route/test_default_route.py snmp/test_snmp_cpu.py snmp/test_snmp_interfaces.py snmp/test_snmp_lldp.py snmp/test_snmp_pfc_counters.py snmp/test_snmp_queue.py syslog/test_syslog.py tacacs/test_rw_user.py tacacs/test_ro_user.py telemetry/test_telemetry.py' -p logs/1vlan. The test_announce_routes.py script is executed.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Two scripts "test_announce_routes.py" and "test_nbr_health.py" are hard coded
as scripts to be skipped in run_tests.sh. This caused these two scripts are not
executed while preparing the DUT for testing.

Indeed, either "-t TOPOLOGY" or "-c TEST_CASES" must be specified in
the run_tests.sh command line arguments. When "-t TOPOLOGY" is specified,
the scripts with "utils" mark will be skipped during test execution. It's
unnecessary to specify them in the skip list. When "-c TEST_CASE" is specified,
the person running the command is responsible for the correctness of the
TEST_CASES list.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin requested review from a team and daall September 2, 2020 03:59
@wangxin wangxin merged commit 5584224 into sonic-net:master Sep 2, 2020
@wangxin wangxin deleted the fix-skip-utils branch September 24, 2020 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants