test_autodetect.sh 540 B

1234567891011121314151617
  1. #!/bin/sh
  2. RETURN_CODE=0
  3. # Exit on the first test failure and set RETURN_CODE = 1
  4. echo "Starting tests...good luck:" \
  5. && echo "Autodetect tests" \
  6. && py.test -s -v test_netmiko_autodetect.py --test_device cisco881 \
  7. && py.test -s -v test_netmiko_autodetect.py --test_device arista_sw4 \
  8. && py.test -s -v test_netmiko_autodetect.py --test_device juniper_srx \
  9. && py.test -s -v test_netmiko_autodetect.py --test_device cisco_asa \
  10. && py.test -s -v test_netmiko_autodetect.py --test_device cisco_xrv \
  11. \
  12. || RETURN_CODE=1
  13. exit $RETURN_CODE