wificell: TestFixture: Refine the logic of using router as pcap.

When pcap is not specified and DUT is connected with IP, TestFixture
will fail to fallback to use router as pcap. Update the logic to handle
the case.

BUG=b:175178768
TEST=tast run -var=router=$ROUTER_IP $DUT_IP wifi.SimpleConnect.80211g

Change-Id: I79e44bcdbc0fc916fe48d61c41b605d10990fca4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tast-tests/+/2581184
Tested-by: Yen-lin Lai <yenlinlai@google.com>
Reviewed-by: Shuo-Peng Liao <deanliao@chromium.org>
Commit-Queue: Yen-lin Lai <yenlinlai@google.com>
1 file changed
tree: 81e875142e8cd7df8c3267bdcd17355c960bc861
  1. .gitignore
  2. LICENSE
  3. OWNERS
  4. PRESUBMIT.cfg
  5. PRESUBMIT.py
  6. README.md
  7. android/
  8. helpers/
  9. src/
  10. tools/
  11. unblocked_terms.txt
  12. vars/
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • helpers/ - Source code for binaries executed by tests.
    • local/ - Helpers for local tests that are compiled and installed to /usr/local/libexec/tast/helpers/local/cros by the tast-local-helpers-cros package.
  • src/chromiumos/tast/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc